Zurück zum Inhaltsverzeichnis

Kapitel 7

> restart;

Konstanten

> constants;

false, gamma, infinity, true, Catalan, FAIL, Pi

> constants:=constants,E:
macro(E=exp(1)):
constants;

false, gamma, infinity, true, Catalan, FAIL, Pi, E,...

> E, evalf(E), ln(E);

exp(1), 2.718281828, 1

signum

> signum(abs(x));

1

> _Envsignum0:=0: signum(abs(x));

signum(abs(x))

Zufallszahlen

> rand(), rand()+10^12*rand();

343633073697, 474256143563474256143563

> rand(1..5)();

2

> rand()/1e12;

.7467538305

>

Vordefinierte Funktionen

> sqrt(a+I*b);

sqrt(a+I*b)

> evalc(%);

1/2*sqrt(2*sqrt(a^2+b^2)+2*a)+1/2*I*csgn(b-I*a)*sqr...

> log(exp(1)), ln(exp(1));

1, 1

> log10(100), simplify(log10(100)), evalf(log10(100));

ln(100)/ln(10), 2, 2.000000000

> log[10](100), simplify(log[10](100)), evalf(log[10](100));

ln(100)/ln(10), 2, 2.000000000

> evalf(sin(1+I));

1.298457581+.6349639148*I

> evalf( [ arctan(1/3), arctan(1,3), arctan(-1,-3) ] );

[.3217505544, .3217505544, -2.819842100]

> evalf(FresnelS( sqrt(2/Pi*0.1) ));

.8404436193e-2

> with(orthopoly): P(7,x);

429/16*x^7-693/16*x^5+315/16*x^3-35/16*x

> P(7,0.05);

-.1069275767

> plot(GAMMA(x), x=-5..5, -5..5);

[Maple Plot]

> plot( {seq(BesselY(n,x),n=1..4)}, x=0..12, -1..0.5);

[Maple Plot]

>

Zurück zum Inhaltsverzeichnis