Differentiation

3 ビュー (過去 30 日間)
Richard
Richard 2012 年 1 月 17 日
コメント済み: Walter Roberson 2024 年 12 月 20 日
Is it possible to construct a code that for example we type in x^2 and then the program finds (d/dx)x^2=0 and gives x=0?
I have tried using syms x; diff(x^2) which gives 2*x but I don't know how to make it solve the equation. Perhaps I have to define a function handle? But f=@(x) diff(x^2) doesn't work.
Please help.

採用された回答

Walter Roberson
Walter Roberson 2012 年 1 月 17 日
solve(diff(x^2))
  1 件のコメント
Richard
Richard 2012 年 1 月 17 日
Thanks, Walter! :-)

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

その他の回答 (2 件)

Wayne King
Wayne King 2012 年 1 月 17 日
syms x
solve(diff(x^2)==0)
  1 件のコメント
Richard
Richard 2012 年 1 月 17 日
Thanks, Wayne! :-)

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


Salama
Salama 2024 年 12 月 18 日
I want to learn differential and integral calculus to help me solve problems in quantum physics.
  2 件のコメント
Walter Roberson
Walter Roberson 2024 年 12 月 18 日
Walter Roberson
Walter Roberson 2024 年 12 月 20 日
Integral calculus and differentiation is a large topic. Numerous textbooks have been written on the topic. It is not very related to MATLAB, so asking here is not correct.

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

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by