matlab Issue regarding a derivation of an equation

  • Follow


i have this equation that i need to derive and find its maximum value for theta and then substitute that value into the equation and obtaining the solution
can you help me with that ?
the equation is 
y= (((cosd(theta).^2 +sind(x)*cosd(theta))^2)+(3*(sind(theta).^2+sind(theta)*cosd(theta))^2))^0.5');


would really appreciate the help.....

Eng. Saleh
0
Reply just4wownigga (1) 6/26/2012 11:09:09 PM

you can find a local maximum with fminsearch or fminunc (optimization toolbox is required for the latter). 

you might have to use multiple starting points to find the global maximum though, but i have little experience with optimizing trigonometric functions, so maybe somebody else has more specific advice how to find the global maximum of such functions
0
Reply sponsstimo (170) 6/27/2012 5:16:07 AM


"Saleh Habib Khajah" wrote in message <jsdfel$ire$1@newscl01ah.mathworks.com>...
> i have this equation that i need to derive and find its maximum value for theta and then substitute that value into the equation and obtaining the solution
> can you help me with that ?
> the equation is 
> y= (((cosd(theta).^2 +sind(x)*cosd(theta))^2)+(3*(sind(theta).^2+sind(theta)*cosd(theta))^2))^0.5');
>  
> would really appreciate the help.....

It's an expression, not an equation
Correct the "x", " ' " and " .^ "
Use cos, not cosd, etc
Replace sin with sqrt(1-cos^2)... (+/- ?)
Substitute z = cos
Constraint  -1<=z<=1
Minimize y^2

Hope thishelps.

Greg
0
Reply heath (3875) 6/27/2012 6:03:07 PM

2 Replies
36 Views

(page loaded in 0.113 seconds)

Similiar Articles:













7/23/2012 7:22:23 PM


Reply: