titre = nom, date

(1) crtl_k, ctrl-j

(2) titre

(3) save

(4) print .... utiliser preview

(5) coller= F4, décoller =F5 (cf menu Edit)

(6) supprimer une cellule : Ctrl-del

sin : fonction, type procedure
sin(t) : résultat, type function

> whattype(sin);
whattype(eval(sin));
whattype(sin(t));

symbol

procedure

function

> plot(sin);

[Maple Plot]

> plot(sin(t));

Plotting error, empty plot

> plot(sin(t), t=-5..5, color= blue, linestyle=24);

[Maple Plot]

> Pi, evalf(Pi)<> evalf(pi);

Pi, 3.141592654 <> pi

> plot(sin(t), t=-5..5, y, color= blue, linestyle=24, tickmarks=[[ evalf(Pi/2)="Pi/2"], [-1,1]]);

[Maple Plot]

aide = F1

missing semi-colon

> plot(sin(t), t=0..Pi, filled=true);

[Maple Plot]

deux point pour ne pas afficher

> pl1:= plot(sin(t), t=-5..5, y, color= blue, linestyle=24, tickmarks=[[ evalf(Pi/2)="Pi/2"], [-1,1]]) :

> pl2:= plot(sin(t), t=0..Pi, filled=true):

> display(pl1, pl2);

[Maple Plot]

>

Sections Ctrl-point

>

approximations de Taylor

> series(sin(t),t); series(sin(t),t,12); series(cos(t),t,12);

series(1*t-1/6*t^3+1/120*t^5+O(t^6),t,6)

series(1*t-1/6*t^3+1/120*t^5-1/5040*t^7+1/362880*t^...

series(1-1/2*t^2+1/24*t^4-1/720*t^6+1/40320*t^8-1/3...

> tmp:= series(sin(t),t) + series(cos(t),t,12);

tmp := (series(1*t-1/6*t^3+1/120*t^5+O(t^7),t,7))+(...

> whattype(series(sin(t),t));

series

> series(tmp, t,10);

series(1+1*t-1/2*t^2-1/6*t^3+1/24*t^4+1/120*t^5-1/7...

> mtaylor(sin(t),t,10);

t-1/6*t^3+1/120*t^5-1/5040*t^7+1/362880*t^9

> pl1:= plot(mtaylor(sin(t),t,2), t=-10..10):

> pl2:= plot(mtaylor(sin(t),t,4), t=-10..10):

> display(pl1,pl2, view=[DEFAULT, -50..50]);

[Maple Plot]

seq donne une suite càd DES objets

> sq:= seq( mtaylor(sin(t),t,2*k), k=1..4);

sq := t, t-1/6*t^3, t-1/6*t^3+1/120*t^5, t-1/6*t^3+...

> plot( [sq], t=-Pi..Pi, color=[blue, red, green], view=[DEFAULT, -1..1]);

[Maple Plot]

>

Newton

> tmp:= (1- z)/(z+2); whattype(%);

tmp := (1-z)/(z+2)

`*`

> f:= unapply(tmp, z);

f := proc (z) options operator, arrow; (1-z)/(z+2) ...

> pl1:= plot(f(t), t=-10..10):

> pl2:= plot(t, t=-10..10, color=blue):

> x0:= -1.; li:= seq( (f@@k)(x0), k=1..5);

x0 := -1.

li := 2.000000000, -.2500000000, .7142857143, .1052...

> pl3:= plots[pointplot]([[-1,0], [-1,2], [2,2]], style=line, color=green): %;

[Maple Plot]

> pl3:= plots[pointplot]([-1,0,-1,2,2,2], style=line, color=green): %;

[Maple Plot]

> pl3:= plots[pointplot]([-1,0,-1,2$4,-0.25$4,0], style=line, color=green): %;

[Maple Plot]

> li;
seq(k$4, k=li);

2.000000000, -.2500000000, .7142857143, .1052631579...

2.000000000, 2.000000000, 2.000000000, 2.000000000,...
2.000000000, 2.000000000, 2.000000000, 2.000000000,...
2.000000000, 2.000000000, 2.000000000, 2.000000000,...

ctrl-z pour annuler la dernière action

> pl3:= plots[pointplot]([-1,0,-1, seq(k$4, k=li[1..-2]), li[-1]$3 ], style=line, color=green): %;

[Maple Plot]

> display(pl1, pl2,pl3, view=[-1..3, -1..2.5], scaling=constrained);

[Maple Plot]

>

> x0:= -6.; li:= seq( (f@@k)(x0), k=0..8);

x0 := -6.

li := -6., -1.750000000, 11.00000000, -.7692307692,...

> pl4:= plots[pointplot]([li[1]$3, seq(k$4, k=li[1..-2]), li[-1]$3 ], style=line, color=green):

> display(pl1, pl2, pl4, view=[-7..4, -7..4]);

[Maple Plot]

reperage de coordonnées sur le graphe

répétition ==> procedure : nom := proc() .... end

> tracer:= proc(x0, nbit) local li, pl4; li:= seq( (f@@k)(x0), k=0..nbit);

> pl4:= plots[pointplot]([li[1]$3, seq(k$4, k=li[1..-2]), li[-1]$3 ], style=line, color=green):

> display(pl1, pl2, pl4, view=[-7..8, -7..8]);

> end :

> tracer(-3.2, 15);

[Maple Plot]

> alpha, beta:= solve(f(z)=z); fsolve(f(z)=z); fsolve(f(z)=z, z=-5..0);

alpha, beta := -3/2-1/2*sqrt(13), -3/2+1/2*sqrt(13)...

.3027756377

-3.302775638

> D(f)(alpha); evalf(%);
D(f)(beta); evalf(%);

-1/(1/2-1/2*sqrt(13))-(5/2+1/2*sqrt(13))/((1/2-1/2*...

-1.767591879

-1/(1/2+1/2*sqrt(13))-(5/2-1/2*sqrt(13))/((1/2+1/2*...

-.5657414540

Pourquoi sont-ils inverses ?

> map( ((z->z)=evalf)@rationalize@D(f), [alpha, beta]) ;

[-7/6-1/6*sqrt(13) = -1.767591880, -7/6+1/6*sqrt(13...

> phi:= unapply( (z-beta)/(z-alpha),z);

phi := proc (z) options operator, arrow; (z+3/2-1/2...

> 'theta=phi(z), Theta=phi(f(z))'; solve({%}, {z, Theta}):
map(collect, rationalize(%), theta, expand);

theta = phi(z), Theta = phi(f(z))

{z = ((-3-sqrt(13))*theta+3-sqrt(13))/(2*theta-2), ...

>

>

>

>