Sei sulla pagina 1di 1

Maple command reference

General: restart; evaln("); eval(",2); printlevel := -1; infolevel := 1; print("); lprint("); readlib(cost);
interface(verboseproc=3,prettyprint=0); kernelopts(printbytes=false); ?inifcns ERROR(‘blah‘); time();
I/O: writeto(outfile); writeto(terminal); appendto(outfile); read data; save data; save ‘data.m‘; save x,y,outfile; ssystem(‘cat data‘)[2];
readlib(readdata); readdata(datafile,3); readdata(datafile,[integer,float]); readline(datafile); sscanf(",‘%d%f‘);
iostatus(); fopen(); fscanf(); printf(); popen(); with(process); pipe(); fork(); writebytes(); readlib(C);
fortran(expr,’optimized’,precision=double); latex(expr,’title’);

Vars, constants: anames(); anames(name); anames(nonnegint); unames(); assigned("); assume(n,odd); additionally(n,n>0); about(");
protect(’a’); unprotect(’a’); setattribute(A,protected); attributes("); macro(e = exp(1)): alias(I = I, i = sqrt(-1));
‘evalf/constant/gamma‘:=proc() args end: assign("); readlib(unassign): unassign("); x := ’x’; A[i] := evaln(A[i]);
Numbers: length("); isprime("); nextprime("); q,r := iquo(a,b),irem(a,b); igcd(a,b); igcdex(a,b,’s’,’t’) [as + bt = gcd(a, b)];
1/2 mod 3; ‘mod‘ := mods;
evalf("); evalhf("); Digits := 15; signum("); Envsignum0 := 0; evalc("); Re("); Im("); abs("); argument("); csgn(");
readlib(rationalize); readlib(surd): surd(op(1,"),1/op(2,")); readlib(radnormal); alias(zeta = RootOf(poly,z)); factor("",zeta); roots(""",zeta);
with(numtheory,cfrac): cfrac(3/4); with(padic): evalp(3/4,3);
Strings: x.1; ‘mucky the ‘.‘pig‘; “.(x,y).(1..4); SearchText(pattern,s);
Functions: readlib(branches)(LambertW,thick); sgn := proc(n::integer) (-1)ˆn end:
pf:=x -> piecewise(x<1,-1,x=1,0,x>1,1,’procname’(x)); min(f,g); max(f,g); convert(f,piecewise);
readlib(forget)(f,3); forget(f); f := unapply(expr,x,t); f := subs(dum=expr,(x,t) -> dum);
Sets: select(s -> length(s)=3, "); map(f, set); remove(f,set); zip(f,list1,list2); A minus B;
Expressions: op("); op(1,"); nops("); readlib(dismantle)("); freeze("); thaw(");
subs(eqs,expr); algsubs(eqs,expr,’exact’); algsubs(eqs,expr,’remainder’); subsop(3=y,expr); applyop(f,2,expr);
whattype("); hastype("); type(",polynom(integer,x)); typematch(exp(x),a::exp(b::name));
convert(",’trig’); convert(",RootOf); convert(",radical); allvalues(",’independent’);
simplify(",symbolic); simplify(",assume=positive); simplify(xˆ3*yˆ2,{x*y=s},[y,x,s]); collect(",x,simplify);

Polynomials etc.: expand("); factor("); Factor(p) mod 2; sort("); degree("); lcoeff("); tcoeff("); coeff(",xˆ2); coeffs(p,x,’powers’);
quo(p2,p1,x,’r’); rem(p2,p1,x); resultant("); sort(p,[x,y],plex); sort(p,[x,y],tdeg); collect(p,x); numer("); denom("); normal(");
hornerform("); confracform("); convert(p,’parfrac’,x,real); convert(p,’parfrac’,x,sqrt(2)); convert(p,’fullparfrac’,x); convert(r,’parfrac’,x,true);
frontend(gcd,[p1,p2]);
Equations: testeq("); solve("); isolve("); MaxSols := 50; RootOf(",selector); alias(y=y(x));
Calculus: Diff(f,x$2); sum(’a[i]’,’i’=0..n);
Linear Algebra: submatrix(A,2..3,1..6);
Library: libname; readlib(residue); readlib(mtaylor)("); orthopoly[T]; with(orthopoly,T);
with(share); sharename; readshare(charsets,algebra); with(charsets);

Reference:
André Heck, Introduction to Maple, Springer-Verlag, 1993

Copyright 2000 Dmitry Gokhman

Potrebbero piacerti anche