You are on page 1of 7

3∗5

H∗Multiplicaçao 3 X 5∗L
15

? Plot

Plot@ f , 8x, xmin , xmax <D generates a plot of f as a function of x from xmin to xmax .
Plot@8 f1 , f2 , …<, 8x, xmin , xmax <D plots several functions fi . à

?D

D@ f , xD gives the partial derivative ∑ f ê ∑ x.


D@ f , 8x, n<D gives the multiple derivative ∑n f ë ∑ xn .
D@ f , x, y, …D differentiates f successively with respect to x, y, ….
D@ f , 88x1 , x2 , …<<D for a scalar f gives the vector derivative H∑ f ê ∑ x1 , ∑ f ê ∑ x2 , …L. à

? Solve

Solve@eqns, varsD attempts to solve an equation or set of equations for the variables vars.
Solve@eqns, vars, elimsD attempts to solve the equations for vars, eliminating the variables elims. à

? Limit

Limit@expr, x -> x0 D finds the limiting value of expr when x approaches x0 . à

? Integrate

Integrate@ f , xD gives the indefinite integral ‡ f d x.


xmax
Integrate@ f , 8x, xmin , xmax <D gives the definite integral ‡ f d x.
xmin

Integrate@ f , 8x, xmin , xmax <, 8y, ymin , ymax <, …D gives the multiple integral ‡
xmax ymax
dx‡ dy … f. à
xmin ymin

? Plot3D

Plot3D@ f , 8x, xmin , xmax <, 8y, ymin , ymax <D generates a three-dimensional plot of f as a function of x and y.
Plot3D@8 f1 , f2 , …<, 8x, xmin , xmax <, 8y, ymin , ymax <D plots several functions. à

f@t_D := 2 ∗ t ∗ Sin@t ^ 2D
2 Algumas funções e comandos.nb

Plot@f@tD, 8t, − 2 Pi, 2 Pi<D

10

-6 -4 -2 2 4 6

-5

-10

flinha@t_D = D@f@tD, tD

4 t2 CosAt2 E + 2 SinAt2 E

Plot@flinha@tD, 8t, − 2 Pi, 2 Pi<D

150

100

50

-6 -4 -2 2 4 6

-50

-100

g@t_D := H1 + tL ^ 2

Plot@8f@tD, g@tD<, 8t, − 10, 10<D

120

100

80

60

40

20

-10 -5 5 10
-20
Algumas funções e comandos.nb 3

Plot3D@Sin@x ^ 2 + yD, 8x, 0, 4<, 8y, 0, 4<D

f@x_D := − 2 + Log@xD

Limit@f@xD, x −> 0D

−∞

If@7 > 8, x, yD

y
x=5
y=4
4

If@x  y, a, b, cD

For@i = 1, i ≤ 4, i = i + 0.5, Print@iDD

1.5

2.

2.5

3.

3.5

4.

Do@Print@iD, 8i, 2, 12, 4<D


4 Algumas funções e comandos.nb

10

Which@1  2, x, 1  1, y, 3  3, zD

g@x_D := Which@x ≤ 0, x ^ 2 + 2, Hx > 0 && x  1L, 2, x ≥ 1, 2 ∗ Cos@x − 1DD

Plot@g@xD, 8x, − 6, 6<D

30

20

10

-6 -4 -2 2 4 6

H∗soma dos numeros pares entre 2 e 100∗L


soma = 0
par = 2
While@par ≤ 100, 8soma = soma + par, par = par + 2<D
Print@somaD
0

2550

soma = 0
Do@soma = soma + par, 8par, 2, 100, 2<D

Print@somaD

2550

H∗soma multiplos de 4, desde 8 a 20∗L


soma = 0
Do@soma = soma + mult, 8mult, 8, 20, 4<D
Print@somaD
0

56

? List

8e1 , e2 , …< is a list of elements. à


Algumas funções e comandos.nb 5

? Table

Table@expr, 8imax <D generates a list of imax copies of expr.


Table@expr, 8i, imax <D generates a list of the values of expr when i runs from 1 to imax .
Table@expr, 8i, imin , imax <D starts with i = imin .
Table@expr, 8i, imin , imax , di<D uses steps di.
Table@expr, 8i, 8i1 , i2 , …<<D uses the successive values i1 , i2 , ….
Table@expr, 8i, imin , imax <, 8 j, jmin , jmax <, …D gives a nested list. The list associated with i is outermost. à

? MatrixForm

MatrixForm@listD prints with the elements of list arranged in a regular array. à

? Det

Det@mD gives the determinant of the square matrix m. à

IdentityMatrix@5D

881, 0, 0, 0, 0<, 80, 1, 0, 0, 0<, 80, 0, 1, 0, 0<, 80, 0, 0, 1, 0<, 80, 0, 0, 0, 1<<

p = 82, 3<
p@@2DD
82, 3<

lista1 = 81, 2, 3<

81, 2, 3<

a = x ^ lista1 + 2

92 + x, 2 + x2 , 2 + x3 =

Derivada = D@a, xD

91, 2 x, 3 x2 =

H∗sustituir um valor numa lista∗L


a ê. x → 2
84, 6, 10<

Derivada ê. x → 2

81, 4, 12<

Table@2 ∗ i − 1, 8i, 1, 5<D

81, 3, 5, 7, 9<
6 Algumas funções e comandos.nb

Table@2, 85<D

82, 2, 2, 2, 2<

V = 881, 2, 3<, 84, 7, 2<, 81, 7, 5<<

881, 2, 3<, 84, 7, 2<, 81, 7, 5<<

MatrixForm@VD

1 2 3
4 7 2
1 7 5

A = 882, − 1, 1<, 83, 4, − 4<, 83, 0, 5<<

882, − 1, 1<, 83, 4, − 4<, 83, 0, 5<<

MatrixForm@AD

2 −1 1
3 4 −4
3 0 5

U = V.A

8817, 7, 8<, 835, 24, − 14<, 838, 27, − 2<<

MatrixForm@UD

17 7 8
35 24 − 14
38 27 − 2

v1 = 81, 3, 7<

81, 3, 7<

H∗Determina a soluçao do sistema de equaçoes lineares VX=v1∗L


LinearSolve@V, v1D
65 29 1
:− , ,− >
48 24 48

Inverse@VD

7 11 17 3 1 5 7 5 1
:: , ,− >, :− , , >, : ,− ,− >>
16 48 48 8 24 24 16 48 48

Transpose@VD

881, 4, 1<, 82, 7, 7<, 83, 2, 5<<

IdentityMatrix@3D

881, 0, 0<, 80, 1, 0<, 80, 0, 1<<

DiagonalMatrix@82, 1, 5<D

882, 0, 0<, 80, 1, 0<, 80, 0, 5<<


Algumas funções e comandos.nb 7

Det@VD

48

SomaLista1@x_D :=
Hn = Length@xD; soma = 0;
Do@soma = soma + x@@iDD,
8i, 1, n<D; somaL
x = 81, 2, 3, 6<
SomaLista1@xD
81, 2, 3, 6<

12

You might also like