How to do manual operation of cross multiplication or substitution?

3 Ansichten (letzte 30 Tage)
Muhammad Usman
Muhammad Usman am 12 Dez. 2021
Kommentiert: Chunru am 14 Dez. 2021
If
syms A B x
y = A*x^2 + B*x;
dy = diff(y)
d2y = diff(dy)
then how to get where d2y is the second derivation; using subs or any other command in MATLAB

Antworten (1)

Chunru
Chunru am 12 Dez. 2021
Is this what you want?
syms A B x z
y = A*x^2 + B*x;
dy = diff(y)
dy = 
d2y = diff(dy)
d2y = 
z = d2y/x^2
z = 
  4 Kommentare
Muhammad Usman
Muhammad Usman am 13 Dez. 2021
Means using any built-in command like subs or eval
Chunru
Chunru am 14 Dez. 2021
subs and eval are for different purposes (not in your questions)

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by