Maple as a analytical tool maple_as_manipulator.mws (7/30/02, updated 7/3/04)
Copyright 2002-2005, SUNY at Buffalo.
Maple can do algebra and calculus.
Solve an equation:
| > | my_equation := x + y^2*x = 9;
solve(my_equation,x); |
If there are multiple solutions, you'll need to pick out the one you want:
| > | solutions:=solve(my_equation,y);
solutions[1]; solutions[2]; |
Maple can also deal with systems of equations:
| > | restart:
eq1:=3*x+y*y=2; eq2:=7*x-9*y=-1; solve({eq1,eq2},{x,y}); solutions:=allvalues(%); |
You can pick out the solution(s) you want like this:
| > | solutions[1]; |
| > | eval([x,y],solutions[1]);
%[1]; |
| > | assign(solutions[2]);
x; y; |
Maple can differentiate and integrate:
| > | restart:
y:=sin(x)+x^2; |
| > | diff(y,x); |
| > | int(y,x); |
| > | int(y,x=0..Pi); |
The assuming operator is sometimes useful:
| > | sqrt(x^2); |
| > | sqrt(x^2) assuming x>0; |
| > | int(exp(-a*x^2),x=0..infinity);
int(exp(-a*x^2),x=0..infinity) assuming a>0; |
| > |