Matematica Laboratorio
Enviado por Rebecca • 5 de Diciembre de 2017 • 2.418 Palabras (10 Páginas) • 303 Visitas
...
>> w = 2*t , y= t; eval(h(w,y))
w =
2*t
ans =
tan(3*t) - 2
>> syms x y
>> L(x,y)=2*x+3*y-1
L(x, y) =
2*x + 3*y - 1
>> x=0 , y=1;eval(L(x,y))
x =
0
ans =
2
>> x=1+t , y=0;eval(L(x,y))
x =
t + 1
ans =
2*t + 1
>> ans=L(1+t,0)
ans =
2*t + 1
>> x=1 , y=0;eval(L(x,y))
x =
1
ans =
1
>> ans=L(1,0)
ans =
1
>> L(1+t,0)-L(1,0)
ans =
2*t
Problema 5
>> isvarname('test')
ans =
1
>> isvarname('Test')
ans =
1
>> isvarname('if')
ans =
0
>> isvarname('my-book')
ans =
0
>> isvarname('my_book')
ans =
1
>> isvarname('1stgroup')
ans =
0
>> isvarname('thisisoneverylongnamebutisitstillallowed')
ans =
1
>> isvarname('group_one')
ans =
1
>> isvarname('zzaAbc')
ans =
1
>> isvarname('z34wAwy?12#')
ans =
0
>> isvarname('sin')
ans =
1
>> isvarname('log')
ans =
1
Problema 6
>> format ('longe')
>> syms l g
>> T=(2*pi)*(sqrt(l/g))
T =
2*pi*(l/g)^(1/2)
>> l=0.1 , g=9.8;eval(T)
l =
1.000000000000000e-01
ans =
6.346975625940523e-01
Problema 7
>> format('longe')
>> syms r P0 k t
>> P(t)=(k*P0*exp(r*t))/(k+P0*(exp(r*t)-1))
P(t) =
(P0*k*exp(r*t))/(k + P0*(exp(r*t) - 1))
>> r=1.2 , P0=1000000 , k= 1500000 , t=5;eval(P(t))
r =
1.200000000000000e+00
P0 =
1000000
k =
1500000
ans =
1.498143237095046e+06
>> syms r P0 k t
>> r=1.2
r =
1.200000000000000e+00
>> P0=1000000
P0 =
1000000
>> k=1500000
k =
1500000
>> t=inf
t =
Inf
>> (k*P0*exp(r*t))/(k+P0*(exp(r*t)-1))
ans =
NaN
Problema 8
>> format('longe')
>> syms P V MW R T
>> P= 100
P =
100
...