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.

 采纳的回答

更多回答(2 个)

Salama
Salama 2024-12-18

0 个投票

I want to learn differential and integral calculus to help me solve problems in quantum physics.

2 个评论

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.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Mathematics 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by