Sie sind auf Seite 1von 4

> >

> >

> >
(1.1) (1.1)
> >
> >
> >
(1.9) (1.9)
(1.6) (1.6)
(1.4) (1.4)

(1.2) (1.2)
(1.3) (1.3)
(1.5) (1.5)
> >
> >
> >
> >
(1.8) (1.8)
(1.7) (1.7)
Ci desous des calculs l'aide de maple qui sont souvent penible faire la main.
Calcul divers.
restart :
Decomposition en element simple
convert(3*x-1/(x-1)^2*(x-3)^3,parfrac,x);
2 x C7 K
12
x K1
C
8
x K1
2
Developpement Limit : le DL est donn avec un grand O
series
sin x
x
, x = 0, 7 ;
1 K
1
6
x
2
C
1
120
x
4
CO x
6
Calcul integral
int(x*ln(x+1)-x,x);
1
2
x C1
2
ln x C1 K
3
4
x
2
C
1
2
x C
3
4
K x C1 ln x C1
int(exp(-x^2+1),x=0..1);int(exp(-x+1),x=1..2);
1
2
erf 1 e !
1 Ke
K1
int(exp(-x^2),x=0..infinity);
1
2
!
int(sin(x)/x,x=0..infinity);
1
2
!
Calcul de serie
sum(1/n^2,n=1..infinity);
1
6
!
2
Resolution d'une equation differentielle
Definir une equation diff
ode := diff(y(x),x,x) = 2*y(x) + 1;
ode :=
d
2
dx
2
y x = 2 y x C1
resolution
dsolve(ode);
y x = e
2 x
_C2 Ce
K 2 x
_C1 K
1
2
> >
(1.10) (1.10)
> >
(1.16) (1.16)
> >
(1.17) (1.17)
(1.12) (1.12)

(2.1) (2.1)
> >
> >
(1.15) (1.15)
> >
(1.14) (1.14)

> >
> >
> >
(1.11) (1.11)
> >
(1.13) (1.13)
conditions initiales
ics := y(0)=1, D(y)(0)=0;
ics := y 0 = 1, D y 0 = 0
resolution d'un probleme de Cauchy
dsolve({ode,ics});
y x =
3
4
e
2 x
C
3
4
e
K 2 x
K
1
2
Resolution d'un systeme lineaire et d'une equation lineaire
solve( 2*y - (a - 1)^2 = 2, y );
3
2
C
1
2
a
2
Ka
solve( x^2 - x = 2, x );
2, K1
Resolution d'un systeme lineaire
solve( {32*x + 13*y + 42*z = 50, 87*x + 190*y + 112*z = 940, 10*x
+ 10*y/4 + 10*z = 10}, {x, y, z});
x =
1548
3115
, y =
3232
623
, z = K
2473
3115
Resolution d'une inequation
solve( {x + y < 10, x^2 = 9}, {x, y} );
x = 3, y !7 , x = K3, y !13
solve(x^4-x^3+1,x);
RootOf _Z
4
K_Z
3
C1, index = 1 , RootOf _Z
4
K_Z
3
C1, index = 2 , RootOf _Z
4
K_Z
3
C1, index = 3 , RootOf _Z
4
K_Z
3
C1, index = 4
Calcul de limite
limit(1/x^2-1/sin(x)^2,x=0);
K
1
3
un peu d'algbre lineaire
I-Algbre linaire
restart:
with(linalg);
BlockDiagonal, GramSchmidt, JordanBlock, LUdecomp, QRdecomp, Wronskian, addcol,
addrow, adj, adjoint, angle, augment, backsub, band, basis, bezout, blockmatrix,
charmat, charpoly, cholesky, col, coldim, colspace, colspan, companion, concat, cond,
copyinto, crossprod, curl, definite, delcols, delrows, det, diag, diverge, dotprod,
eigenvals, eigenvalues, eigenvectors, eigenvects, entermatrix, equal, exponential, extend,
ffgausselim, fibonacci, forwardsub, frobenius, gausselim, gaussjord, geneqns,
genmatrix, grad, hadamard, hermite, hessian, hilbert, htranspose, ihermite, indexfunc,
innerprod, intbasis, inverse, ismith, issimilar, iszero, jacobian, jordan, kernel, laplacian,
> >
(2.5) (2.5)
(2.4) (2.4)
> >
(2.3) (2.3)
> >
> >
(2.6) (2.6)
> >
(2.7) (2.7)
(2.8) (2.8)

(2.1) (2.1)
> >
> >
(2.2) (2.2)
leastsqrs, linsolve, matadd, matrix, minor, minpoly, mulcol, mulrow, multiply, norm,
normalize, nullspace, orthog, permanent, pivot, potential, randmatrix, randvector, rank,
ratform, row, rowdim, rowspace, rowspan, rref, scalarmul, singularvals, smith,
stackmatrix, submatrix, subvector, sumbasis, swapcol, swaprow, sylvester, toeplitz,
trace, transpose, vandermonde, vecpotent, vectdim, vector, wronskian
dfinition d'une matrice, d'un vecteur
A:=matrix(4,4,[4,-1,-1,-2,2,1,-1,-2,0,1,3,0,-2,1,1,4]);
A :=
4 K1 K1 K2
2 1 K1 K2
0 1 3 0
K2 1 1 4
eigenvects(..) est une commande qui permet le calcul des valeurs
propres, leurs multiplicit et des vecteurs propres qui forment des
bases des sous espaces propes associs.
eigenvects(A);
4, 2, K1 K1 K1 1 , 2, 2, 0 K1 1 0 , 1 0 0 1
dans cette exemple la matrice admet la valeur propre 4 avec une
multiplicit 2 et le sous espace
propre associ est engendr par le vecteur propre (-1,-1,-1,1) c'est
dire de dimension 1, et aussi
admet la valeur propre 2 de multiplicit 2 et le sous espace propre
de dimension 2.
charpoly(A,X);factor(%);
X
4
K12 X
3
C52 X
2
K96 XC64
XK2
2
XK4
2
Attention! c'est det(XI_n-A) et non comme le cours det(A-XI_n).
B:=matrix(3,3,[5,-5,4,4,-4,4,-3,3,4]);
B :=
5 K5 4
4 K4 4
K3 3 4
eigenvects(B);
4, 1, 1 1 1 , 0, 1, 1 1 0 , 1, 1, 9 8 1
v1:=vector([1,1,1]);v2:=vector([1,1,0]);v3:=vector([9,8,1]);
v1 := 1 1 1
v2 := 1 1 0
v3 := 9 8 1
P:=concat(v1,v2,v3);Q:=inverse(P);

(2.1) (2.1)
(2.9) (2.9)
> >
(2.8) (2.8)
P :=
1 1 9
1 1 8
1 0 1
Q :=
K1 1 1
K7 8 K1
1 K1 0
P est la matrice de passage. Pour faire le produit matriciel on
utilise + pour la somme et &* pour le produit en plus de la commande
evalm.
dyag:=evalm(Q&*B&*P);
dyag :=
4 0 0
0 0 0
0 0 1

Das könnte Ihnen auch gefallen