How partial differentiate a big formula ?

I have to partial differenciate this formel :
Skript : ----------------------------------------------------
a0 = 0.0008; %Kerbtiefe
W = 4 *10^-3; %Höhe der Probe
Si = 2*10^-2; %innere Abstand Belastungsrollen
So = 4*10^-2; %äussere Abstans Belastungsrollen
a1 = 3.8*10^-3; %Kerblänge
Pmax = 50; %maximale Kraft
B = 3*10^-3; %Breite der Probe
% Formfaktor Y
Y = ((3.08 + 5.00*(a0/W)+8.33*(a0/W)^2)*(1+0.007*((Si*So)/W^2)^0.5)*((a1/W-a0/W)/(1-a0/W)));
%Formula
K1c = (((3.08 + 5.00*(a0/W)+8.33*(a0/W)^2)*(1+0.007*((Si*So)/W^2)^0.5)*((a1/W-a0/W)/(1-a0/W)))*((Pmax*(So-Si))/(B*W^(3/2)))) / (1*10^6);
---------------------------------------------------------------------------------------------------------- So now, I need to differenciate this formula like : diff(K1c, a0) diff(K1c, W) etc.
But it doesn't work ... :(

1 Comment

This is the message I become:
"Error using diff
Difference order N must be a positive integer scalar."

Sign in to comment.

 Accepted Answer

Torsten
Torsten on 4 Jul 2016
You will have to declare K1c,a0 and W as "syms" :
Best wishes
Torsten.

1 Comment

Many Thanks ... I already tried it.. but i'll do it again :)
best regards Lise

Sign in to comment.

More Answers (0)

Categories

Find more on Instrument Control Toolbox in Help Center and File Exchange

Asked:

on 3 Jul 2016

Commented:

on 4 Jul 2016

Community Treasure Hunt

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

Start Hunting!