How to use "diff" with the correct variable name

How to use "diff" with the correct variable name - To differentiate an expression with respect to the name of the variable in a vector - 消息

#1 已发布: 2023/6/22 14:34:19
Mario Acevedo

Mario Acevedo

0个赞,共11个帖子。

组: User

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:

variables_names.png

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 已发布: 2023/6/22 15:23:25
Arie

Arie

94个赞,共285个帖子。

组: User

I could not tell you why this works.. but assigning another variable the value of q.d[i seems to work.
jacobiano.png
Jacobiano.sm (8.76 KiB)已下载 1385 次。
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#3 已发布: 2023/6/22 19:39:16
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Something like this ?
Jean

Maths Jacobian Example.sm (7.94 KiB)已下载 1390 次。
#4 已发布: 2023/6/22 19:57:02
Mario Acevedo

Mario Acevedo

0个赞,共11个帖子。

组: User

Wrote

I could not tell you why this works.. but assigning another variable the value of q.d[I] seems to work.
jacobiano.png
Jacobiano.sm (8.76 KiB)已下载 1385 次。




Thank you very much!, it works fine. I am also wandering why, but it works!
#5 已发布: 2023/6/22 20:42:39
Mario Acevedo

Mario Acevedo

0个赞,共11个帖子。

组: User

Wrote

Something like this ?
Jean

Maths Jacobian Example.sm (7.94 KiB)已下载 1390 次。



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.
  • 有新帖
  • 无新帖