MATLAB Answers

Derivative of a function of three variables

3 views (last 30 days)
MINATI PATRA
MINATI PATRA on 26 May 2021
Edited: Torsten on 26 May 2021
%% Can it be possible to find derivative of 'C' simultaneously with all the variables
syms y S K
C = exp(-y*sqrt(S*K)); CD = diff(C,[y S K])

Accepted Answer

Torsten
Torsten on 26 May 2021
Edited: Torsten on 26 May 2021
syms y S K
C(y,S,K) =exp(-y*sqrt(S*K));
g = gradient(C(y,S,K),[y,S,K])

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!

Translated by