how do I find the extreme points?

6 ビュー (過去 30 日間)
Chad Love
Chad Love 2016 年 10 月 25 日
回答済み: Robin Sah 2019 年 2 月 21 日
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..

採用された回答

KSSV
KSSV 2016 年 10 月 25 日
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)]
  1 件のコメント
Chad Love
Chad Love 2016 年 10 月 25 日
Thank you!!

サインインしてコメントする。

その他の回答 (1 件)

Robin Sah
Robin Sah 2019 年 2 月 21 日
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)]

カテゴリ

Help Center および File ExchangeElementary Math についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by