The function is:
f=sin(x)+sin(x*2)
and I want to find the scalar maximum and this is my code as of now.
f = sin(x)+sin(x*2);f2 = diff(f,x)==0;x = solve(f2,x);X = max(x);
However this code gives:
acos(- 33^(1/2)/8 – 1/8)
and I want a numerical value because I need to use the scalar maximum for other calculations. If I procede with this code then "acos(- 33^(1/2)/8 – 1/8)" shows in every following calculation. Please let me know how to convert this or use a different code, thanks.
Best Answer