Function: solve (expr, x)
Function: solve (expr)
Function: solve ([eqn_1, ..., eqn_n], [x_1, ..., x_n])
- Solves the algebraic equation expr for the variable x and returns a list of solution equations in x.
-
(%i)solve(a*x^2+b*x+c=0,x);
(%o)[x=-(sqrt(b^2-4*a*c)+b)/(2*a),x=(sqrt(b^2-4*a*c)-b)/(2*a)]
(%i) f(x):= x^2 - 1;
(%i) solve( f(x) = 0 );
(%o) [x=-1,x=1]