diff of order n around a point x0

5 visualizzazioni (ultimi 30 giorni)
adam
adam il 3 Ago 2012
Hello,
I would like to calculate the derivative of order n of function f with respect to x aaround a point x0.
diff(f,x,x0,n) but doesn't work
Any help!!
Thank you in advance.
Adam

Risposta accettata

Wayne King
Wayne King il 3 Ago 2012
Do you have the Symbolic Toolbox and an expression for your function?
syms t
x = cos(2*t);
y = diff(x,2)
subs(y,0) %evaluate the 2nd derivative at t=0
  1 Commento
adam
adam il 3 Ago 2012
Modificato: adam il 3 Ago 2012
Hello, Thank you for your answer. Yes, I have the symbolic toolbox.
I would like make sum of diff(x) for exemple for order n going from 0 to 5. I tried:
{symsum(diff(x,n), n, 0, 5)}
it dipalys an error. Thank you in adavance. Good day, Aam

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by