solve function

40 views
Skip to first unread message

hassanb...@gmail.com

unread,
Oct 9, 2014, 7:36:39 PM10/9/14
to sy...@googlegroups.com
I wrote a program (witch is available in the attachment) to calculate a variable( 'w' in the program) by calculating determinate of a matrix (witch include the variable) equal to zero. but I don't know why it doesn't work for l=0.01 and work for l=0.0.
I use version 7.4.1 of Sympy.
    
4.py

Chris Smith

unread,
Oct 17, 2014, 10:43:14 AM10/17/14
to sy...@googlegroups.com
Don't use solve if you just want a numerical value for this quintic determinant, use nsolve:

>>> nsolve(determ, w, 0)
mpf('0.51659678129991493')
Reply all
Reply to author
Forward
0 new messages