Maple Tutorial 3:
Some Maple Commands
M.M. Yovanovich
TUTORIAL3.MWS
Some useful Maple commands.
> restart:
> f:= (x+y)*(x+y)^2;
> g:= expand(f);
> factor(g);
> diff(f,x);
> diff(g, y$3);
> int(f, x);
> h:= f/g;
> n:= numer(h);
> d:= denom(h);
> subs(x=1, f);
> subs(x=1, y=3, f);
> nops(d);
> op(1,d); op(3,d); op(2..4,d);
> abs(-a + b);
> sqrt(x); sqrt(x^2); subs(x = 2, %); simplify(%);
> sqrt(3); sqrt(3.);
> solve(a*x + b = c,x);
> fsolve(exp(-x) = x, x);
> log(10.); ln(10.); log10(10.); evalf(%,10);
> int(sin(x), x); int(sin(x), x = a..b);
> subs(a = Pi/3, b = Pi/4, %); evalf(%, 8);
> Int(sin(x), x = a..b);
> Diff(T(x,y),x); Diff(T(x,y),y); Diff(T(x,y),x,y);
> add(i, i = 1..5);
> s:= [seq(i^2, i = 1..6)];
> s[1]; s[3]; s[6];
> f1:= x = sin(x)^3 + cos(y)^2;
> lhs(f1); rhs(f1); op(1, rhs(f1));
> subs(x=Pi/3, op(1, rhs(f1))); evalf(%, 5);
> series(sin(x), x, 9);
> series(sinh(x)/x, x, 8);
> limit(sin(x)/x, x=0);
> sort([3,2,6,4,5,1]);
> p:= expand((1+2*x)*(x+y)^2);
> sort(p,x);
> sort(p,{x,y});
> coeff(p,x,2);
> coeff(p,x^2);
> combine(exp(a)*exp(-b), exp);
> combine(ln(3)+ln(2), ln);
> combine(x^a*x^b, power);
> combine(sin(x)*cos(y), trig);
> round(2.123); round(2.756);
> trunc(3.234); trunc(3.765);
> sign(-3.65); sign(3.65);
> min(1,3,5,7,9); max(1,3,5,7,9);
> taylor(exp(x), x = 0, 4);
> int(exp(-x^3), x); series(%, x, 7);