Taking derivative and putting it equal to 0 to find theta.

5 次查看(过去 30 天)
S = (6*s*h) - ((3*s*s*cot(x))/2) + ((3*s*s*sqrt(3)*csc(x))/2)
This is the equation of surface area of a beehive. I have to take first derivative and put it equal to 0 to find the theta i.e x. Could someone help me with this.

回答(2 个)

Stephan
Stephan 2022-12-1
编辑:Stephan 2022-12-1
syms s h S(x)
fun = S(x) == (6*s*h) - ((3*s*s*cot(x))/2) + ((3*s*s*sqrt(3)*csc(x))/2)
fun = 
sdot = diff(fun,x) == 0
sdot = 

VBBV
VBBV 2022-12-1
syms x s h
S = (6*s*h) - ((3*s*s*cot(x))/2) + ((3*s*s*sqrt(3)*csc(x))/2)
S = 
Y = diff(S,x) == 0 % take derivative of equation w.r.t x
Y = 
sol = solve(Y,x) % find x (theta)
sol = 

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

产品


版本

R2015a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by