Is there any good way to define the square of a function in M9?
Usually one can write e.g.
f[z_] = 3*Sin[z] etc etc.
But is it possible to define
g^2[z_] = 2*Cos[z] for example?
closed as off-topic by Yves Klett, Sjoerd C. de Vries, Öskå, ciao, RunnyKine Jun 9 '14 at 22:53
This question appears to be off-topic. The users who voted to close gave this specific reason:
You can do something like this more safely using up-values:
Note that this definition is a structural transfomation rule and has no mathematical meaning. The system won't know that
It does seem from your question that you're not on the right path here though. It would be better to explain what your actual problem is that prompted you to want to do this.
What you can do in principal anyway is redefine the
This strikes me as asking for trouble though..note for one thing this redefines