Sei sulla pagina 1di 4

REPASO DE METODOS NUMERICOS

Para la función 1

>> syms x y z

>> f=3*x-cos(y*z)-0.5

f=

3*x - cos(y*z) - 1/2

>> fx=diff(f,x,1)

fx =

>> fx=diff(f,y,1)

fx =

z*sin(y*z)

>> fx=diff(f,z,1)

fx =

y*sin(y*z)
>> syms x y z

>> f=eps^(-x*y)+20*z+((10*pi)-3)/3

f=

20*z + 1/(1/4503599627370496)^(x*y) + 5332248173269055/562949953421312

>> fx=

fx=

Error: Expression or statement is incomplete or incorrect.

>> fx=diff(f,x,1)

fx =
-1/(1/4503599627370496)^(x*y)*y*log(1/4503599627370496)

>> fx=diff(f,y,1)

fx =

-1/(1/4503599627370496)^(x*y)*x*log(1/4503599627370496)

>> fx=diff(f,z,1)

fx =

20

Para la funcion 3

>> syms x y z

>> f=eps^(-x*y)+20*z+((10*pi)-3)/3

f=

20*z + 1/(1/4503599627370496)^(x*y) + 5332248173269055/562949953421312

>> fx=

fx=

Error: Expression or statement is incomplete or incorrect.

>> fx=diff(f,x,1)
fx =

-1/(1/4503599627370496)^(x*y)*y*log(1/4503599627370496)

>> fx=diff(f,y,1)

fx =

-1/(1/4503599627370496)^(x*y)*x*log(1/4503599627370496)

>> fx=diff(f,z,1)

fx =

20

>>

Potrebbero piacerti anche