ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

CLASES DE MATLAB


Enviado por   •  25 de Noviembre de 2015  •  Informes  •  261 Palabras (2 Páginas)  •  125 Visitas

Página 1 de 2

%CLASES DE MATLAB

%El comando sym se usa para crear objetos simbólicos en MATLAB.

>>x=sym('1-sqrt(2)');

>>y=x^2-2*x

y =(2^(1/2) - 1)^2 + 2*2^(1/2) - 2

>> simplify(y)

ans =1

EXPANDIR

syms x;

>> y=(x-1)^3+3*x^2+1;

>> expand(y)

ans =x^3 + 3*x

SIMPLIFY

>> syms x;

>> y=(x^2-x+1/x-1/x^2)/(x-1+1/x);

>> simplify(y)

ans =x - 1/x

http://www.sc.ehu.es/sbweb/energias-renovables/MATLAB/simbolico/algebra/algebra.html

syms x real;

num = x^4 - 2*x^2 -8;

denom = 1;

f=num/denom

ezplot(f)

%CLASES DE MATLAB

%El comando sym se usa para crear objetos simbólicos en MATLAB.

>>x=sym('1-sqrt(2)');

>>y=x^2-2*x

y =(2^(1/2) - 1)^2 + 2*2^(1/2) - 2

>> simplify(y)

ans =1

EXPANDIR

syms x;

>> y=(x-1)^3+3*x^2+1;

>> expand(y)

ans =x^3 + 3*x

SIMPLIFY

>> syms x;

>> y=(x^2-x+1/x-1/x^2)/(x-1+1/x);

>> simplify(y)

ans =x - 1/x

http://www.sc.ehu.es/sbweb/energias-renovables/MATLAB/simbolico/algebra/algebra.html

syms x real;

num = x^4 - 2*x^2 -8;

denom = 1;

f=num/denom

ezplot(f)

%CLASES DE MATLAB

%El comando sym se usa para crear objetos simbólicos en MATLAB.

>>x=sym('1-sqrt(2)');

>>y=x^2-2*x

y =(2^(1/2) - 1)^2 + 2*2^(1/2) - 2

>> simplify(y)

ans =1

EXPANDIR

syms x;

>> y=(x-1)^3+3*x^2+1;

>> expand(y)

ans =x^3 + 3*x

SIMPLIFY

...

Descargar como (para miembros actualizados)  txt (2.6 Kb)   pdf (43.8 Kb)   docx (13.2 Kb)  
Leer 1 página más »
Disponible sólo en Clubensayos.com