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 comentario

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

Iniciar sesión para comentar.

 Respuesta aceptada

Torsten
Torsten el 4 de Jul. de 2016

0 votos

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

1 comentario

Lise
Lise el 4 de Jul. de 2016
Many Thanks ... I already tried it.. but i'll do it again :)
best regards Lise

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Instrument Control Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 3 de Jul. de 2016

Comentada:

el 4 de Jul. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by