thank you, I found the error
but now, how can I pass the critical point to hessian matrix??
thank you
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 scusa forse cosi' mi capisci meglio
come faccio una volta trovati i punti critici a metterli al posto
delle variabili nell'hessiana,
e soprattutto come faccio a provarli tutti?
grazie ancora (e scusa per le mille richieste ma รจ la prima volta che
mi metto a programmare qualcosa)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---