1 Pages (5 items)
How to use "diff" with the correct variable name - To differentiate an expression with respect to the name of the variable in a vector - Messages
#1 Posted: 6/22/2023 2:34:19 PM
Dear all:
Dear Friends:
I'm relatively new to Smath and I have a question that I've been trying to solve for a long time and I can't find a way.
This is to use the "diff" function to differentiate an expression with respect to the variable that is an element of a vector, just like the "Jacob" function does. Here is an example:

Hope you can help me and tell me how to derive a expression with respect to the correct varible name.
Best wishes to all,
Mario
Dear Friends:
I'm relatively new to Smath and I have a question that I've been trying to solve for a long time and I can't find a way.
This is to use the "diff" function to differentiate an expression with respect to the variable that is an element of a vector, just like the "Jacob" function does. Here is an example:
Hope you can help me and tell me how to derive a expression with respect to the correct varible name.
Best wishes to all,
Mario
#2 Posted: 6/22/2023 3:23:25 PM
I could not tell you why this works.. but assigning another variable the value of q.d[i seems to work.

Jacobiano.sm (8 KiB) downloaded 31 time(s).
Jacobiano.sm (8 KiB) downloaded 31 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#3 Posted: 6/22/2023 7:39:16 PM
#4 Posted: 6/22/2023 7:57:02 PM
WroteI could not tell you why this works.. but assigning another variable the value of q.d[I] seems to work.
Jacobiano.sm (8 KiB) downloaded 31 time(s).
Thank you very much!, it works fine. I am also wandering why, but it works!
#5 Posted: 6/22/2023 8:42:39 PM
WroteSomething like this ?
Jean
Maths Jacobian Example.sm (7 KiB) downloaded 31 time(s).
Thank you very much, the solution proposed by alyles works fine.
The worksheet you are attaching is something different. But thank you very much in any case.
1 Pages (5 items)
-
New Posts
-
No New Posts