how do I find the extreme points?

9 views (last 30 days)
Chad Love
Chad Love on 25 Oct 2016
Answered: Robin Sah on 21 Feb 2019
y = x(sin(x))^2 with a domain interval of [-0.5, 0.5]
Have been trying to work this problem out and can't seem to figure it out..

Accepted Answer

KSSV
KSSV on 25 Oct 2016
clc; clear all ;
x = linspace(-0.5,0.5) ;
y = x.*(sin(x)).^2 ;
plot(x,y) ;
% extreme points
[x(1) y(1)]
[x(end) y(end)]

More Answers (1)

Robin Sah
Robin Sah on 21 Feb 2019
clc; clear all ;
x = linspace(-0.5,0.5) ;
y = x.*(sin(x)).^2 ;
plot(x,y) ;
% extreme points
[x(1) y(1)]
[x(end) y(end)]

Community Treasure Hunt

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

Start Hunting!