How would you do this?
Michael Torrie
torriem at gmail.com
Thu Feb 28 07:52:43 CET 2013
On 02/27/2013 08:32 PM, eli m wrote:
> How would you find the slope, y intercept, and slope-intercept form
> equation for a line in python?
Well, how do you do it by hand? Once you have the basic formula or
algorithm down, just translate it into python. Math is math. We can
answer specific questions of course. Like, how would I represent the
equation in python? Well put each term in a variable. For example,
3x^2-2x+4 = 0, you would store the 3, 2, and 4 in variables. Then run
your formula on them.
More information about the Python-list
mailing list