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]