How to properly write e^(sin(x)^3) x^6-2x^4-x^
1 view (last 30 days)
Show older comments
I have it written this way :
f= @(x)(exp((sin(x))^3)+x^6-2*x^4-x^3-1);
but it is not giving me the correct answer when it gets run through my code. THANKS!
0 Comments
Answers (1)
Star Strider
on 28 Mar 2018
f= @(x)(exp(sin(x).^3) + x.^6 - 2*x.^4 - x.^3 - 1);
x = linspace(-pi, pi);
plot(x, f(x))
grid
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!