Differentiation

5 visualizaciones (últimos 30 días)
Richard
Richard el 17 de En. de 2012
Comentada: Walter Roberson el 20 de Dic. de 2024
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.

Respuesta aceptada

Walter Roberson
Walter Roberson el 17 de En. de 2012
solve(diff(x^2))
  1 comentario
Richard
Richard el 17 de En. de 2012
Thanks, Walter! :-)

Iniciar sesión para comentar.

Más respuestas (2)

Wayne King
Wayne King el 17 de En. de 2012
syms x
solve(diff(x^2)==0)
  1 comentario
Richard
Richard el 17 de En. de 2012
Thanks, Wayne! :-)

Iniciar sesión para comentar.


Salama
Salama el 18 de Dic. de 2024
I want to learn differential and integral calculus to help me solve problems in quantum physics.
  2 comentarios
Walter Roberson
Walter Roberson el 18 de Dic. de 2024
Walter Roberson
Walter Roberson el 20 de Dic. de 2024
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by