.


:




:

































 

 

 

 


.

.

:

a alpha;

β beta;

γ gamma;

δ delta;

ξ epsilon;

τ theta;

λ lambda;

χ xi;

π pi;

σ sigma;

ψ psi;

ω omega.

 

:

+ ;

;

* ;

/ ;

^ .

 

Infinity ;

;

abs ;

sqrt ;

log ;

ln .

 

:

subs ;

evalf ;

solve ;

piecewise ;

simplifi ;

combine .

 

1.

:

,

.

.

> subs(x=5,sqrt(x)*(x+2)-x^3);

 

 

> evalf(7*5^(1/2)-125);

 

 

: .

 

 

2.

:

.

 

.

> solve(5*x^2+abs(x+7)-13=0);

 

,

 

:

> subs(x=-6/5,5*x^2+abs(x+7)-13);

 

 

> subs(x=1,5*x^2+abs(x+7)-13);

 

 

: (-6/5,1).

 

3.

:

.

 

.

:

> f:=piecewise(x<=0,x^2,x<=1,2*x,x>1,1-x);

 

x2 x 0

f:= 2*x x 1

1-x x>1

=0,5:

> subs(x=0.5,f);

 


.25.5 0

1.0.5 1

.5 1 <.5

 

: [0.25, 0.5 0],[1.0, 0.5 1],[0.5, 1 < 0.5].

 

4.

:

.

.

> simplify((a^3-b^3)/(a-b));

 

 

: .

 

5.

:

.

.

> combine((x^(1/2))*x^(3/2));

 

 

: .

 

1. ;

2. ;

3. ;

4. ;

5. ;

6. ;

7. ;

8. ;

9. ;

10. .

 

1. ;

2. ;

3. ;

4. ;

5. ;

6. ;

7. ;

8. ;

9. ;

10. .

 

, :

1. ;

2. ;

3. ;

4. ;

5. ;

6. ;

7. ;

8. ;

9. ;

10. .

 

1. ;

2. ;

3. ;

4. ;

5. ;

6. ;

7. ;

8. ;

9. ;

10. .

 

.

> 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, 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, stack, submatrix,

subvector, sumbasis, swapcol, swaprow, sylvester, toeplitz, trace,

transpose, vandermonde, vecpotent, vectdim, vector, wronskian]

 

matrix ;

vector ;

type ;

col ;

coldim ;

row ;

rowdim ;

det ;

eigenvals ;

eigenvectors ;

inverse ;

multiply ;

evalm , ;

rank ;

transpose ;

crossprod ;

dotprod ;

angle ;

genmatrix .

 

1.

:

,

,

,

.

 

:

( = )

> F:=[7*X+9*Y+4*Z+2*T=2,2*X-2*Y+Z-T=6,3*X+8*Y+2*Z+T=-3,2*X+3*Y+Z+T];

 

F:= [7 X + 9 Y + 4 Z + 2 T = 2, 2 X - 2 Y + Z - T = 6, 3 X + 8 Y + 2 Z + T = -3, 2 X + 3 Y + Z + T]

 

x,y,z.t - ,

> v:=[X,Y,Z,T];

 

v:= [X, Y, Z, T]

 

:

> a:=genmatrix(F,v);

 

a

 

a:

> o:=det(a);

 

o:= 5

 

:

> A:=matrix([[7,9,4,2],[2,-2,1,6],[3,8,2,-3],[2,3,1,0]]);

 

A:=

 

 

> Ad:=det(A);

 

Ad:= -5

 

> B:=matrix([[7,9,2,2],[2,-2,-1,6],[3,8,1,-3],[2,3,1,0]]);

 

B:=

 

> Bd:=det(B);

 

Bd:= 7

 

> C:=matrix([[7,4,2,2],[2,1,-1,6],[3,2,1,-3],[2,1,1,0]]);

 

C:=

 

> Cd:=det(C);

 

Cd:= -4

 

> E:=matrix([[9,4,2,2],[-2,1,-1,6],[8,2,1,-3],[3,1,1,0]]);

 

 

E:=

> Ed:=det(E);

 

Ed:= -12

 

> A1:=o/Ad;

 

A1:= -1

 

> B1:=o/Bd;

 

B1:= 5/7

 

> C1:=o/Cd;

 

C1:= -5/4

 

> E1:=o/Ed;

 

E1:= -5/12

 

: x=-5/12, y=-5/4, z=5/7, t=-1.

 

2.

:

.

:

> A1:=matrix(2,2,[4,3,4,1]);

 

A1:=

 

> A2:=matrix(2,2,[-1,0,6,6]);

 

A2:=

 

> A3:=matrix([[2,5],[3,6]]);

 

A3:=

 

2 2:

> B:=evalm(2*A2);

 

B:=

 

3:

> C:=evalm(B&*A3);

C:=

 

1:

> F:=evalm(C+A1);

 

 

F:=

 

F :

> type(F,matrix);

 

true

 

: .

 

3.

1 =(5,9,1) 2 = (1,9,5)

1 2.

 

.

1 2

> 1:=vector([5,9,1]);

 

1:= [5, 9, 1]

 

> 2:=vector(3,[1,9,5]);

 

2:= [1, 9, 5]

 

:

> V:=crossprod(1,2);

 

V:= [36, -24, 36]

 

:

> S:=dotprod(A1,A2);

 

S:= 91

 

:

> angle(A1,A2);

 

 

4.

:

=

 

, 4 , .

 

.

:

C:=matrix([[1,2,3],[4,5,6],[7,8,9], [1,2,3],[4,5,6],[7,8,9],[5,2,8]]);

 

:=

 

:

> rowdim(A);

 

7

 

4 :

> row(A,4);

 

[1,2,3]

 

:

> :=inverse(A);

 

:=

 

:

> transpose();

 

 

1

 

> with(networks);

[acycpoly, addedge, addvertex, adjacency, allpairs, ancestor,

arrivals, bicomponents, charpoly, chrompoly, complement, complete,

components, connect, connectivity, contract, countcuts,

counttrees, cube, cycle, cyclebase, daughter, degreeseq, delete,

departures, diameter, dinic, djspantree, dodecahedron, draw,

duplicate, edges, ends, eweight, flow, flowpoly, fundcyc,

getlabel, girth, graph, graphical, gsimp, gunion, head,

icosahedron, incidence, incident, indegree, induce, isplanar,

maxdegree, mincut, mindegree, neighbors, new, octahedron,

outdegree, path, petersen, random, rank, rankpoly, shortpathtree,

show, shrink, span, spanpoly, spantree, tail, tetrahedron,

tuttepoly, vdegree, vertices, void, vweight]

new ;

addvertex ;

connect ;

edges ;

vertices ;

draw ;

complete ;

vdegree ;

indegree ;

outdegree ;

maxdegree ;

delete ;

incidence ;

countcuts ;

adjacency .

 

1.

G 1,3,4,6; 1 3 4 6, , .

 

.

G:

> new(G):

:

> addvertex({1,3,4,6},G);

 

1, 3, 4, 6

 

1 3 4 6:

> connect({1,3},{4,6},G);

 

e1, e2, e3, e4

 

:

> edges(G);

 

{e4, e2, e1, e3}

 

:

> vertices(G);

 

{1, 3, 4, 6}

G:

> draw(G);

 

:

> S:=adjacency(G);

 

S:=

 

 

:

> Y:=incidence(G);

 

Y:=

2.

6 , 1 5 , , 6 .

 

.

6 :

> G2:=complete(6):

 

> draw(G2);

 

1 5 :

> delete({1,5},G2):

 

:

> draw(G2);

6:

> indegree(6,G2);

 

0

:

> maxdegree(G2);

 

3

> with(plots);

[animate, animate3d, changecoords, complexplot, complexplot3d,

conformal, contourplot, contourplot3d, coordplot, coordplot3d,

cylinderplot, densityplot, display, display3d, fieldplot,

fieldplot3d, gradplot, gradplot3d, implicitplot, implicitplot3d,

inequal, listcontplot, listcontplot3d, listdensityplot, listplot,

listplot3d, loglogplot, logplot, matrixplot, odeplot, pareto,

pointplot, pointplot3d, polarplot, polygonplot, polygonplot3d,

polyhedraplot, replot, rootlocus, semilogplot, setoptions,

setoptions3d, spacecurve, sparsematrixplot, sphereplot, surfdata,

textplot, textplot3d, tubeplot]

 

p lot , ();

color , 25 ;

thickness , 0 15;

style , : point, line;

title ;

coords=polar ;

solve ;

plot3d ;

axes ;

inequal ;

optionsfeasible ;

optionsexcluded ;

optionsclosed , , .

1.

.

 

.

():

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

 

2.

, , - .

 

.

.

> plot(tan(x),x=-2...infinity,color=blue);

 

3.

, , , 20, - .

 

.

.

> plot(5-x^2,x=-4..5,y=-5..5,color=green,thickness=20,style=point,title='porabola');

 

4.

, , 10, .

 

.

.

> plot(x/Pi,x=0..2*Pi,color=blak,thickness=10,style=point,coords=polar);

5.

, , ; , , ; , , .

 

.

:

> plot({[sin(t),t,t=0..Pi/2],[-sin(t),t,t=Pi..3*Pi/2],[1,t,t=0..2*Pi]},coords=polar);

6.

, , , .

 

.

:

> plot([5/x,6-x],x=-6..6,y=-5..6);

:

> solve(5/x=6-x,x);

 

1, 5

: 1,5

 

7.

, , , , .

 

.

:

> plot3d({1+x+y,1+x-y},x=-2..2,y=-2..2,axes=boxed,color=green);

8.

, , , , (-1;2), , , , - 6.

 

.

:

> inequal({x+y<=1,x>=0,y>=0},x=-1..2,y=-1..2,optionsfeasible=(color=red),optionsexcluded=(color=green),optionsclosed=(color=blue,thickness=6));

, , - .

1. , ;

2. , ;

3. , ;

4. ;

5. , ;

6. , ;

7. , ;

8. , ;

9. , ;

10. , .

 

.

restart ;

diff .

 

1.

:

 

.

:

> restart:((x^2-1)/(x^2+1))^4;

 

 

:

> R0:=diff(((x^2-1)/(x^2+1))^4,x);

 

 

: .

2.

:

.

 

.

:

> restart:ln((a^2+x^2)/(a^2-x^2));

 

:

> R0:=diff(ln((5+x^2)/(6-x^2)),x);

 

 

x=0 :

> subs(x=0,R0);

0

 

: 0.

 

3.

:

;

 

.

:

> R0:=diff(x*exp^(-x),x$3);

 

R0:= 3exp(-)ln(exp)2 -x exp(-)ln(exp)3

 

: 3exp(-)ln(exp)2 -x exp(-)ln(exp)3.

 



<== | ==>
.04 |
:


: 2018-11-12; !; : 160 |


:

:

- , , .
==> ...

1836 - | 1606 -


© 2015-2024 lektsii.org - -

: 0.296 .