Derivate an expression with time

2 ビュー (過去 30 日間)
Anis Frej
Anis Frej 2020 年 4 月 18 日
コメント済み: Anis Frej 2020 年 4 月 18 日
Good Morning,
My problem is I have an equation depends on theta and I don't have an expression of theta (which is the variable in the equation), and theta depends on t and i like derivate my equation with t.
For example my equation is as follows : f (t) = a * cos (theta)
Where theta = theta (t) And I would like to have a result in this style : f '(t) = - a * (theta)' * sin(theta)
Thank you.

採用された回答

Walter Roberson
Walter Roberson 2020 年 4 月 18 日
syms a theta(t) theta_prime f_prime
f(t) = a * cos(theta);
dtheta = diff(theta,t);
df = diff(f,t);
f_prime == subs(df, dtheta, theta_prime)
  1 件のコメント
Anis Frej
Anis Frej 2020 年 4 月 18 日
Think you verry much ;)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by