Borrar filtros
Borrar filtros

how to differentiate this equation

1 visualización (últimos 30 días)
areej abdulshaheed
areej abdulshaheed el 2 de Mzo. de 2020
Editada: KALYAN ACHARJYA el 2 de Mzo. de 2020
if I have this equation
theta=-2*alpha*sin(kn*pi/n)*sin(2*kn*pi*s/L+2*kn*pi*(i)/n+kn*pi/n)
how can I differenat theta(s) to theta_D and theta_DD

Respuestas (1)

KALYAN ACHARJYA
KALYAN ACHARJYA el 2 de Mzo. de 2020
Editada: KALYAN ACHARJYA el 2 de Mzo. de 2020
syms s
theta_D=diff(theta,s);
theta_2D=diff(theta,s,2); %or theta_2D=diff(theta_D,s);
  2 comentarios
areej abdulshaheed
areej abdulshaheed el 2 de Mzo. de 2020
this erroer occur
Error using diff
Difference order N must be a positive integer scalar.
Error in mohammed (line 43)
theta_D=diff(theta,s)
Walter Roberson
Walter Roberson el 2 de Mzo. de 2020
diff() can only be used to differentiate symbolic expressions or symbolic functions. If you attempt to differentiate a numeric array but pass in a symbolic variable as the second parameter, or pass in anything that is not a scalar integer (such as a vector of numeric values), then you would get that error.

Iniciar sesión para comentar.

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by