thank you for the answer
I found the error "solve_system" instead of "solve"!!

but now how I can pass every couple of critical point to the hessiana,
and take determinant?

this is my script now:
import sympy

x = sympy.Symbol('x')
y = sympy.Symbol('y')

f = input("scrivi la funzione :")
print "hai scritto: ", f

a = sympy.diff(f, x)
print "La derivata prima in x:"
sympy.pprint(a)

b = sympy.diff(f, y)
print "La derivata prima in y:"
sympy.pprint(b)

print "I punti critici sono:"
print sympy.solve([a, b], [x, y])

H = sympy.hessian(f, [x,y])
print "La matrice Hessiana :"
print H
print "Il determinante dell'Hessiana:"
print H.det()

p.s.
ciao riccardo grazie mille
รจ la prima volta in assoluto che programmo scusami per le numerose
richieste di aiuto!!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to