Symbolic derivative in a sum

4 Ansichten (letzte 30 Tage)
uranus
uranus am 14 Mär. 2024
Kommentiert: David Goodmanson am 15 Mär. 2024
I have this expression and I want to evaluate the derivative over p where A_m has a form like that:
It don't know even where to start from. Is there any way to do it ?

Antworten (1)

David Goodmanson
David Goodmanson am 14 Mär. 2024
Bearbeitet: David Goodmanson am 14 Mär. 2024
Hello OG,
If you know d/dp G for the elements of G, you can use
d/dp G^-1 = -G^-1 (d/dp G) G^-1
which is all right numerically, But if you want to do the whole thing symbolically, unless the size of G is really small this will turn into a huge intractable mess of symbolic spaghetti very quickly.
  2 Kommentare
uranus
uranus am 14 Mär. 2024
Bearbeitet: uranus am 14 Mär. 2024
I have already tried that, but then it turns into (also a mess of) normal differentiation, but I can write it explicitly. Thus, is it not anymore symbolic, right? The system is of the order of 20 but I think this is sufficient to get the spaghetti!
David Goodmanson
David Goodmanson am 15 Mär. 2024
If you know (d/dp G) either symbolically or numerically then you can get it numerically, and after that it would appear that numerical evaluation of the expression -G^-1 (d/dp G) G^-1 for a 20x20 should work reasonably well, unless G is close to being singular and has a bad condition number..

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Symbolic Math Toolbox 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