Derivative of a function of three variables

3 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)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!