Look for this session in /home/ceng303/maple/sessions as: ch1_11.mw
Session 1.11 Solving Simple Equations
> restart;
> eq1:=x^2=3; Define equation with one unknown
> solve(eq1,x); Solve equation for x
> eq2:=x^3=0.5; Cubic equation should have 3 solutions
> xs:=solve(eq2,x); All solutions for cubic equation. Note : I is used for sqrt(-1)
> xs[3]; You can pick out one of the solutions with "[" and "]". This is the real root.
> eqs:={x+3*y=5,2*x-y=3}; Define two equations with two unknowns as a set using { and } to enclose them.
> solve(eqs,{x,y}); Solve system of equations simultaneously. note you have to specify what to solve for.
> soln:=solve(eqs); If variable is not specified, Maple V, will select the variable. sometimes that may not be what you want.
> x;y;Note that these variables have not been given values.
> assign(soln);x;y; The "assign" function makes the result found apply to the variables.
>