![]() |
how to write a function in python that solves an equation - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Homework (https://python-forum.io/forum-9.html) +--- Thread: how to write a function in python that solves an equation (/thread-5289.html) |
how to write a function in python that solves an equation - samiraheen - Sep-27-2017 Write a function fun(x) that takes as input a positive number x and solves the following equation for y and returns y. The equation is 104y=x+3 RE: how to write a function in python that solves an equation - metulburr - Sep-27-2017 sympy module http://docs.sympy.org/latest/index.html RE: how to write a function in python that solves an equation - hbknjr - Sep-27-2017 Content removed RE: how to write a function in python that solves an equation - sparkz_alot - Sep-27-2017 You are actually solving the equation for 'y'. So if the equation is 104 * y = x + 3, how could you rewrite the formula so it is 'y = new formula RE: how to write a function in python that solves an equation - shameless23 - Sep-28-2017 (Sep-27-2017, 12:40 PM)sparkz_alot Wrote: You are actually solving the equation for 'y'. So if the equation is 104 * y = x + 3, how could you rewrite the formula so it is 'y = new formula The thing is the guy wrote the equation wrong the equation is 10^(4*y)=x+3 so you cant rewrite the formula for y. Btw next time rewrite the question in your own sentences so T/A's or Profs wont find this LOL. RE: how to write a function in python that solves an equation - Mekire - Sep-28-2017 (Sep-28-2017, 12:24 AM)shameless23 Wrote: the equation is 10^(4*y)=x+3 so you cant rewrite the formula for ylog_10(x+3)/4? Also, if your professors aren't watching known forums for posts something is wrong. We also have users that will report you to your school based on your IP so the best solution is to act ethically. |