How to simply differentiate equations?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have defined an equation V(x,t), can i store the second derivitive of this equation in a new equation?
0 Commenti
Risposta accettata
Wayne King
il 24 Apr 2013
Modificato: Wayne King
il 24 Apr 2013
Do you have the Symbolic Toolbox?
syms x t;
v = cos(x)*sin(t);
d2v_dx2 = diff(v,'x',2);
d2v_dx2 has class sym
2 Commenti
Wayne King
il 24 Apr 2013
Modificato: Wayne King
il 24 Apr 2013
use subs() for example, to leave t alone and put in pi for the x variable
subs(d2v_dx2,[x,t],[pi,t])
or to substitute for both variables
subs(d2v_dx2,[x,t],[pi,pi/2])
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Calculus in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!