Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

sols[0] is x==3 not a substitution command.

Use this instead.

h = x^2-9; h
sols = solve(h == 0, x); sols
h.subs(sols[0])