Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #40116
| Date | 2013-02-27 23:52 -0700 |
|---|---|
| From | Michael Torrie <torriem@gmail.com> |
| Subject | Re: How would you do this? |
| References | <0318f314-91e5-472a-a664-054ca7ea5097@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2641.1362034371.2939.python-list@python.org> (permalink) |
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.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
How would you do this? eli m <techgeek201@gmail.com> - 2013-02-27 19:32 -0800 Re: How would you do this? Dave Angel <davea@davea.name> - 2013-02-28 01:29 -0500 Re: How would you do this? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-02-28 06:44 +0000 Re: How would you do this? Michael Torrie <torriem@gmail.com> - 2013-02-27 23:52 -0700
csiph-web