matlab para romperseel ojo
CAPITULO III
EJERCICIOS RESUELTOS EN CLASE:
nota2
nota2 =
13
>> nota5
Undefined function or variable 'nota5'.
>> clear nota2
>> nota2
Undefined function or variable 'nota2'.
>> nota2
nota2 =
13
>> nota5
Undefined function or variable 'nota5'.
>> clear nota2
>> nota2
Undefined function or variable 'nota2'.
>>i
ans =
0 + 1.0000i
>> j
ans =
0 + 1.0000i
>> realmin
ans =
2.2251e-308
>>
>> pi
ans =
3.1416
>> format long e
>> pi
ans =
3.141592653589793e+00
>> format long
>> pi
ans =
3.141592653589793
>> format hex
>> pi
ans =
400921fb54442d18
>> format bank
>> pi
ans =
3.14
>> n = input('ingrese numero:');
ingrese numero:15
>> disp (n);
15.00>> a=3
a =
3.00
>> b=4
b =
4.00
>> hipot=sqrt(a^2+b^2)
hipot =
5.00
>>>> a=3
a =
3.00
>> b=4
b =
4.00
>> hipot=sqrt(a^2+b^2)
hipot =
5.00
>> x=sqrt(2)/2
x =
0.71
>> y=asin(x)
y =
0.79>> format short
>> pi
ans =
3.1416
>> y=sqrt(2)/2
y =
0.7071
>> y=asin(x)
y =
0.7854
>> y_deg=y*180/pi
y_deg =
45.0000
>> y=sin (x)
y =
0.6496
>> sin(30*pi)/180
ans =
-5.9885e-17
>> sin(30*pi/180)
ans =
0.5000
y =
5
>> y=rem(23.4)
Error using rem
Not enough input arguments.
>> y=rem(23,4)%
y=
3
>> y=sqrt(3^2+4^2)%
y =
5
>> disp (n)
15
>> 20+12
ans =
32
>> sin (x)
ans =
0.6496
>> x=[1,2,3;9,8,7]
x =
1 2 3
9 8 7
>> x=[1,2,3;9,8,7];
>> sin(x)
ans =
0.8415 0.9093 0.1411
0.4121 0.9894 0.6570
>> x=[0.8,0.9,0.1,0.8,0.9,0.1,0.4,0.9,0.6]
x =
Columns 1 through5
0.8000 0.9000 0.1000 0.8000 0.9000
Columns 6 through 9
0.1000 0.4000 0.9000 0.6000
>> x=[0.8,0.9,0.1,0.8,0.9,0.1,0.4,0.9,0.6];
>> z=asin(x)
z =
Columns 1 through 5
0.9273 1.1198 0.1002 0.9273 1.1198
Columns 6 through 9
0.1002 0.4115 1.1198 0.6435
>> y=sech(x)
y =
Columns 1 through 50.7477 0.6978 0.9950 0.7477 0.6978
Columns 6 through 9
0.9950 0.9250 0.6978 0.8436
>> y=sech(x)
y =
Columns 1 through 5
0.7477 0.6978 0.9950 0.7477 0.6978
Columns 6 through 9
0.9950 0.9250 0.6978 0.8436
>> y=sech(x)
y =
Columns 1 through 5
0.7477 0.6978 0.9950 0.7477 0.6978
Columns 6through 9
0.9950 0.9250 0.6978 0.8436
>> y=sech(x)
y =
Columns 1 through 5
0.7477 0.6978 0.9950 0.7477 0.6978
Columns 6 through 9
0.9950 0.9250 0.6978 0.8436
>> y=sech(x)
y =
Columns 1 through 5
0.7477 0.6978 0.9950 0.7477 0.6978
Columns 6 through 9
0.9950 0.9250 0.6978 0.8436a=input('ingresar a:');
b=input('ingresar b:');
c=input('ingresar c:');
x1 =(-b+sqrt(b^2-4*a*c))/(2*a)
x2 =(-b-sqrt(b^2-4*a*c))/(2*a)
clc
a=input('ingresar a:');
b=input('ingresar b:');
c=input('ingresar c:');
x1 =(-b+sqrt(b^2-4*a*c))/(2*a);
disp(x1)
x2 =(-b-sqrt(b^2-4*a*c))/(2*a);
disp(x2)
EJERCICIOS PROPUESTOS CAPITULO III
1. Resuelva el sistema:
2x + 3y = 4
5x – 2y =6
>> A = [2 3 ;5 -2]
A =
2 3
5 -2
>> b = [4 6]'
b =
4
6
>>
x = inv (A)*b
x =
1.3684
0.4211
2. Resuelva la ecuación cúbica 5x3 + 2x2 - 3x + 1 = 0;
>> c= [5 2 -3 1]
c =
5 2 -3 1
>> roots(c)
ans =
-1.1060
0.3530 + 0.2371i
0.3530 - 0.2371i
3. Obtenga la solución de la ecuación diferencial...
Regístrate para leer el documento completo.