Derivative of a function of three variables

6 views (last 30 days)
%% 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)

Community Treasure Hunt

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

Start Hunting!