| 1 | initial version |
Try this:
sage: solutions=solve(list(f.diff()),[x,y],solution_dict=True)
sage: solutions
[{y: 0, x: -I}, {y: 0, x: I}, {y: -1/2, x: 0}]
sage: H.subs(solutions[2])
[(x, y) |--> -1 (x, y) |--> 0]
[ (x, y) |--> 0 (x, y) |--> 2]
The documentation for solve has some more information about this keyword.
| 2 | No.2 Revision |
Try this:
sage: solutions=solve(list(f.diff()),[x,y],solution_dict=True)
sage: solutions
[{y: 0, x: -I}, {y: 0, x: I}, {y: -1/2, x: 0}]
sage: H.subs(solutions[2])
[(x, y) |--> -1 (x, y) |--> 0]
[ (x, y) |--> 0 (x, y) |--> 2]
Or this:
sage: H(x,y).subs(solutions[2])
[-1 0]
[ 0 2]
I'm not sure exactly what output you are looking for.
The documentation for solve has some more information about this keyword.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.