| > | restart;with(plots):with(plottools):with(linalg); |
Warning, the name changecoords has been redefined
Warning, the assigned name arrow now has a global binding
Warning, the protected names norm and trace have been redefined and unprotected
![]()
![]()
![]()
| > |
Exercice 4
question b)
| > |
| > | f:=x->piecewise(x=0,0,x^2*sin(1/x)); |
| > | g:=(x,y)->piecewise(x=y,D(f)(x),(f(x)-f(y))/(x-y)); |
| > | f(0,0); |
| > | plot3d(g(x,y),x=-0.5..0.5,y=-0.5..0.5,axes=normal); |
![[Plot]](images/exo4_8.gif)
| > |
Voici le profil de la section obtenu par une droite passant par l'origine et tournant au cours du temps
| > | profil_x:=theta->cos(theta)*t;profil_y:=theta->sin(theta)*t;t:='t': |
| > | sect:=theta->cos(theta)*x+y*sin(theta); |
| > | profil_courbe(g,profil_x,profil_y,[-1,1],[-Pi,Pi],-1); |
![[Plot]](images/exo4_12.gif)
| > |
Le même profil vu sur un plan fixe (courbe du paramétrage)
| > | F:=proc(theta) plot(g(profil_x(theta),profil_y(theta)),t=-1..1 ); end: |
| > | animate(F,[theta],theta=-Pi..Pi, axes=normal,frames=41); |
![[Plot]](images/exo4_13.gif)
Voici les courpes obtenues par les sections correspondantes à ces droites tournantes
| > | profil_section(g,[-1,1],[-1,1],sect,[-Pi,Pi],-1); |
![[Plot]](images/exo4_14.gif)
En particulier le profil de f selon la droite y=x, nous donne
| > | 'g'(x,x)=simplify(g(x,x)); |
| > | coupe(g,[-1,1],[-1,1],[t,t],[-1,1],y-x,-1,100); |
![[Plot]](images/exo4_16.gif)
| > | coupe_plan(g,[t,t],[-1,1]); |
![[Plot]](images/exo4_17.gif)
g n'est pas continue en (0,0) selon la droite y=x
| > | Limit('g'(x,x),x=0)=limit(g(x,x),x=0); |
| > |
question b)
| > | 'f'(x,x+x^2)=f(x,x+x^2); |
| > | Limit('f'(x,x+x^2), x=0)=limit(f(x,x+x^2), x=0); |
| > |
| > |
| > |
| > |
| > |
| > |
| > |
Exercice 5
question b)
| > | f:=(x,y)->(x+y)/sin(x+y); |
| > | Limit('f'(x,k*x), x=0)=limit(f(x,k*x),x=0);Limit('f'(x,y), r=0)=limit(f(x,y),{x=0,y=0}); |
| > | plot3d(f(x,y),x=-3..3,y=-3..3,axes=normal); |
![[Plot]](images/exo4_24.gif)
| > | F:=proc(t) plot(f(x,tan(t)*x),x=-3..3,y=-2..2 ); end: |
| > | animate(F,[t],t=-1.5..1.5, axes=normal,frames=41); |
![[Plot]](images/exo4_25.gif)
question c)
| > | f:=(x,y)->tanh(x^2/y^2); |
| > | Limit('f'(x,k*x), x=0)=limit(f(x,k*x),x=0);Limit('f'(x,y), r=0)=limit(f(x,y),{x=0,y=0}); |
| > | plot3d(f(x,y),x=-2..2,y=-2..2,axes=normal); |
![[Plot]](images/exo4_29.gif)
| > | F:=proc(t) plot(f(x,tan(t)*x),x=-2..2 ); end: |
| > | animate(F,[t],t=-1.5..1.5, axes=normal,frames=41); |
![[Plot]](images/exo4_30.gif)
question c)
| > | f:=(x,y)->(x*sin(y)-y*sin(x))/(x^2+y^2); |
| > | Limit('f'(x,k*x), x=0)=limit(f(x,k*x),x=0);Limit('f'(x,y), r=0)=limit(f(x,y),{x=0,y=0}); |
| > | plot3d(f(x,y),x=-1..1,y=-1..1,axes=normal); |
![[Plot]](images/exo4_34.gif)
| > | F:=proc(t) plot(f(x,tan(t)*x),x=-1..1 ); end: |
| > | animate(F,[t],t=-1.5..1.5, axes=normal,frames=41); |
![[Plot]](images/exo4_35.gif)