Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Solución:
> x=c(1,1.2,1.4,1.8,2)
> f
[1] 1.221065e-04 3.812754e-07 4.211842e-09 2.758563e-24 1.509354e-51
> g=(asin(x*pi/180)^2*(exp(x)^cos(x)))+(sin(2*x*pi/180)/sin(x*pi/180)^-1)-
log10(acos((x*pi/180)/((x*pi/180)+2)^exp(x)))
> g
[1] -0.1942711 -0.1940048 -0.1937817 -0.1933723 -0.1931044
> max(f,g)
[1] 0.0001221065
> min(f,g)
[1] -0.1942711
> n=sum(max(f,g))
> n
[1] 0.0001221065
> m=sum(min(f,g))
> m
[1] -0.1942711
> o=n*m
> o
[1] -2.372176e-05
> sum(n,m)
[1] -0.194149
> n+m
[1] -0.194149
2. Hallar las siguientes, sub_matrices (B, C) a partir de la matriz A, utilizando matrices predefinidas y calcular la suma de filas y
columnas de la matriz B (4p)
1 2 3 4 5 6 1 2 3 4 5 6
7 8 9 10 11 12 7 0 0 0 0 12
A= 13 14 15 16 17 18 B= 13 1 1 1 1 18
19 20 21 22 23 24 19 1 1 1 1 24
25 26 27 28 29 30 25 0 0 0 0 30
3
31 32 33 34 35 36 31 2 33 34 35 36
1 0 0 0 0 0
0 8 0 0 0 0
1
C= 0 0 5 0 0 0
0 0 0 22 0 0
2
0 0 0 0 9 0
0 0 0 0 0 36
3. Realizar las gráficas para las siguientes funciones utilizando división de figuras con sus respectivas etiquetas; (5p)
g ( x )= √
4 5 441 3
f ( x )= √( x−1) x − x −log ( x )+ 2 x , x −ln (|x+ e e x |)
2
3 e 8
3 √9
8
3 (0.5 +x) 4
M =x ∗log (x )− x 5 +2 x e+1
3
M(x)
f(x)
Solucionario ejercicio: 3
x<-c(1,1.2,1.4,1.8,2)
par(mfrow=c(2,2))
f=sqrt(x-1)*x^3-4/3*x^5-log10(x^exp(1))+2*x^8
legend("bottomleft",col="violet",legend=c("funcion f"),lwd=2,bty="n")
g=sqrt(441)/sqrt(9)*x^3-log(abs(x+exp(1)^((exp(1)*x)^2)))
legend("bottomleft",col="red",legend=c("funcion g"),lwd=2,bty="n")
m=x^3*log10(x^(0.5+x))-4/3*x^5+2*x^(8/exp(1)+1)
x<-c(1,1.2,1.4,1.8,2)
f=sqrt(x-1)*x^3-4/3*x^5-log10(x^exp(1))+2*x^8
g=sqrt(441)/sqrt(9)*x^3-log(abs(x+exp(1)^((exp(1)*x)^2)))
m=x^3*log10(x^(0.5+x))-4/3*x^5+2*x^(8/exp(1)+1)
lines(x,sqrt(x-1)*x^3-4/3*x^5-log10(x^exp(1))+2*x^8,type = "o",col=("violet"),lwd=2)
lines(x,sqrt(441)/sqrt(9)*x^3-log(abs(x+exp(1)^((exp(1)*x)^2))),type = "o",col=("red"),lwd=2)
lines(x,x^3*log10(x^(0.5+x))-4/3*x^5+2*x^(8/exp(1)+1),type = "o",col=("green"),lwd=2)
legend("bottomleft",col=c("violet","red","green"),legend=c("f(x)","G(x)","M(x)"),lwd=2,bty="n")