Binomial theorem with derivatives in MATLAB

I'm very new to MATLAB and trying to write a code to compute , where and .
is a time-derivative operator. So for example, .
Can anyone please give me a hint on how to code please?

2 commentaires

Jan
Jan le 7 Déc 2021
Numerically or symbolically?
Symbollically. I wrote this code. Does this make sense?
B(t) = 0;
for k = 0:n
B(t) = B(t) + nchoosek(n, k)*diff(f(t), t, k)*c^(n - k);
end

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by