Documentos de Académico
Documentos de Profesional
Documentos de Cultura
PREGUNTA NUMERO 1
>> a=10
a = 10
b=5
b=5
c=4
c= 4
d=10
d = 10
funcion = [a b c d]
a = 10
a = 10
b= 5
b= 5
c= 4
c= 4
d =10
funcion =10 5 4
>> E=(a^2+sqrt((3*(a*b)+3*(d^2)+15)^(1/3)))
102.7834
1,2 pregunta
>> m=3
m= 3
n=4
n=4
p=7
p= 7
m =3
m= 3
n =4
n= 4
p= 7
p= 7
>> funcion = [a b c ]
funcion =
10 5 4
>> F=log5(sqrt((a^2)*(b^2))+2c^2+d^3
F = 6.9866
PREGUNTA NUMERO 2
a = input('');
b = input('');
if a > b
temp = a;
a = b;
b = temp;
end
suma = 0;
for i = a:b
suma = suma + i;
end
end
% Mostrar el resultado
fprintf('La suma de los números que no son múltiplos de 2 y 3 es: %d\n', suma);
PREGUNTA NUMERO 3
>> plot(b,f)
PREGUNTA NUMERO 4
% inciso a
t = linspace(0,2*pi);
x = 4+6*cos(t);
y = 2+3*sin(t);
subplot(2,1,1)
plot(x,y)
title('Elipse')
grid on
% inciso b
t = linspace(-2,2);
x1 = 4+7*cosh(t);
y1 = 2+4*sinh(t);
x2 = 4-7*cosh(t);
y2 = 2-4*sinh(t);
subplot(2,1,2)
plot(x1,y1,x2,y2)
title('Hiperbola')
grid on