Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您如何在 Mathematica 中编写以下内容?
J[x,t]=q[x,t]*D[q[x,t],x]
我想在另一个等式中使用这个身份。
以下是如何定义这样的函数:
J[x_, q_] := q*D[q, x]
所以,例如,
J[x, q[x, t]]
会给
q[x, t] * D[q[x, t], x]