Exaktes Rechnen mit beliebig vielen Stellen

> A:= 2^200-1;

[Maple Math]

> B:= 2^100-1;

[Maple Math]

> C:=A/B;

[Maple Math]

> C-B;

[Maple Math]

Primfaktorzerlegung

> a:= (10^47-1)/9;

[Maple Math]

> isprime(a);

[Maple Math]

> ifactor(a);

[Maple Math]

Polynomarithmetik

> f := x^3-2*x+1;

[Maple Math]

> g:= x^5 -1;

[Maple Math]

> h:=f*g;

[Maple Math]

> expand(h);

[Maple Math]

> p:=factor(h);

[Maple Math]

> q:=op(3,p);

[Maple Math]

Symbolisches L"osen von Gleichungen

> sol:=solve(q=0);

[Maple Math]

> ns:=sol[1];

[Maple Math]

> simplify(subs(x=ns,q));

[Maple Math]

> evalf(ns,10);

[Maple Math]

Numerisches L"osen von Gleichungen

> fsolve(q=0,x);

> fsolve(q=0,x,complex);

[Maple Math]

Symbolische Integration

> int(1/(1+x^4),x);

[Maple Math]

>

Symbolisches L"osen vonDifferentialgleichungen

> deq:= diff(y(t),t,t) + 0.5*diff(y(t),t) + y(t)=0;

[Maple Math]

> dsol := rhs(dsolve({y(0)=1,D(y)(0)=1,deq},y(t)));

[Maple Math]

> plot(dsol,t=0..20);

>