Calculating derivative of a function

a=62;
b=95;
y = @(x) (3*x.^2.*sin(a*x))./(x.^2+b);
dy = diff(y)
I don't know exactly how i need to calculate the derivative correctly.

 採用された回答

KSSV
KSSV 2017 年 4 月 5 日

0 投票

syms x
a=62;
b=95;
y = (3*x.^2.*sin(a*x))./(x.^2+b);
dy = diff(y)

その他の回答 (1 件)

Torsten
Torsten 2017 年 4 月 5 日

1 投票

syms a b x
y = (3*x^2*sin(a*x))/(x^2+b);
dy = diff(y,x)
Best wishes
Torsten.

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

質問済み:

2017 年 4 月 5 日

回答済み:

2017 年 4 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by