Assignment 2
Assignment 2
Viernes BSCE - 4A
%CNSC/CoEng/CAM Prelim/Activity 2
syms x y N
N=0.13
diff(diff(y))
N = 0.1300
pretty(ans)
y =log((13*x)/25 + 2) + x^4
2 169
pretty(y) 12 x - -----------------
/ 13 x \ 4 / 13 x \2
log| ---- + 2 | + x 625 | ---- + 2 |
\ 25 / \ 25 /
diff(y) N*diff(diff(y))
pretty(ans) pretty(ans)
13 3 2
--------------- + 4 x 39 x 2197
/ 13 x \ ----- - -------------------
| ---- + 2 | 25 25 / 13 x \2
\ 25 / 62500| ---- + 2 |
\ 25 /
syms x y N
N=0.13
N =0.1300
y=sin((N*x^3)+exp(x*(4*x+1)))
pretty(y)
/ 3 \
| 13 x |
sin| exp(x (4 x + 1)) + ----- |
\ 100 /
diff(y)
pretty(ans)
/ 3 \ / 2 \
| 13 x | | 39 x |
cos| exp(x (4 x + 1)) + ----- | | exp(x (4 x + 1)) (8 x + 1) + ----- |
\ 100 / \ 100 /
diff(diff(y))
ans =cos(exp(x*(4*x + 1)) + (13*x^3)/100)*((39*x)/50 + 8*exp(x*(4*x + 1)) + exp(x*(4*x + 1))*(8*x + 1)^2) - sin(exp(x*(4*x + 1)) +
(13*x^3)/100)*(exp(x*(4*x + 1))*(8*x + 1) + (39*x^2)/100)^2
pretty(ans)
/ 3 \ / 3 \ / 2 \2
| 13 x | / 39 x 2\ | 13 x | | 39 x |
cos | #1 + ----- | | ---- + 8 #1 + #1 (8 x + 1) | - sin | #1 + ----- | | #1 (8 x + 1) + ----- |
\ 100 / \ 50 / \ 100 / \ 100 /
where
#1 == exp(x (4 x + 1))
N*diff(diff(y))
ans =(13*cos(exp(x*(4*x + 1)) + (13*x^3)/100)*((39*x)/50 + 8*exp(x*(4*x + 1)) + exp(x*(4*x + 1))*(8*x + 1)^2))/100 - (13*sin(exp(x*(4*x + 1)) +
(13*x^3)/100)*(exp(x*(4*x + 1))*(8*x + 1) + (39*x^2)/100)^2)/100
pretty(ans)
/ 3 \ / 3 \ / 2 \2
| 13 x | / 39 x 2 \ | 13 x | | 39 x |
cos | #1 + ----- || ---- + 8 #1 + #1 (8 x + 1) | 13 sin| #1 + ----- | | #1 (8 x + 1) + ----- | 13
\ 100 / \ 50 / \ 100 / \ 100 /
---------------------------------------------------- - ----------------------------------------------
100 100
where
#1 == exp(x (4 x + 1))
syms x y N
N=0.13
N =0.1300
y=(x-3)*log(sin(x)/cos(4*x))+cos(exp(N*x+3))
pretty(y)
/ / 13 x \ \ / sin(x) \
cos| exp| ---- + 3 | | + log| -------- | (x - 3)
\ \ 100 / / \ cos(4 x) /
diff(y)
pretty(ans)
/ cos(x) sin(4 x) sin(x) 4 \
cos(4 x) | -------- + ----------------- | (x - 3)
| cos(4 x) 2 |
/ sin(x) \ sin(#1) #1 13 \ cos(4 x) /
log| -------- | - ------------- + -------------------------------------------------
\ cos(4 x)/ 100 sin(x)
where
/ 13 x \
#1 == exp| ---- + 3 |
\ 100 /
diff(diff(y))
N =0.1300
y=((a*x^(3*N))/5*x-sin(3*x+2))/((N*exp(x-2*N))/(3*x-N))
diff(y)