Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nnnnnnnninnnnnn
on Jan 16, 2013
|
parent
|
context
|
favorite
| on:
The Easy Way To Solve Equations In Python
See
http://sympy.org/en/index.html
. I've been using this for a while.
jre
on Jan 16, 2013
|
next
[–]
I've been using sympy to automate some derivative computation and I loved it. I found the evalf[1] function to be really helpful as it helps bridge the gap between the symbolic and numeric world.
[1]
http://docs.sympy.org/dev/modules/evalf.html
barakstout
on Jan 16, 2013
|
parent
|
next
[–]
Good point. I think you could use the standard python eval() instead of defining f. something like:
f = 'x**3+x-1' x = 4 eval(f)
It should work fine.
barakstout
on Jan 16, 2013
|
prev
|
next
[–]
That is a very good option. Thanks!
tlarkworthy
on Jan 16, 2013
|
prev
[–]
I was hoping for a sympy tutorial when I clicked
barakstout
on Jan 17, 2013
|
parent
[–]
I am sure that can be arranged in the future, if one doesn't exist already.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: