2
$\begingroup$

I'm working with a bunch of funtions with multiple aguments, say f[x,y,z], g[x,y,z], etc. I want to do operations with them like derivatives and products, and I want to read the result easily, without having to see all the arguments.

Is there an easy way to achive this?

$\endgroup$
1
  • $\begingroup$ I don't understand the question. Can you provide concrete examples along with what you'd like to see? $\endgroup$
    – lericr
    Commented Sep 19, 2023 at 22:59

1 Answer 1

6
$\begingroup$
$Version

(* "13.3.1 for Mac OS X ARM (64-bit) (July 24, 2023)" *)

ClearAll["Global`*"]

Use Format

(Format[#[_Symbol, _Symbol, _Symbol]] := #) & /@ {f, g};

(Format[Derivative[n__][#][_Symbol, _Symbol, _Symbol]] := 
     Superscript[#, StringForm["(``,``,``)", n]]) & /@ {f, g};

f[x, y, z]*D[f[x, y, z], x] + 
 g[x, y, z]*D[f[x, y, z], x, {y, 2}]*D[g[x, y, z], z]^2

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.