f[x_] := (E^(3 x + 2))/Sin[2*x] gives
f[x_] := (E^(3 x + 2))/Sin[2*x]
E^(2 + 3 x) Csc[2 x]
I dont want that
Hi, I would define it as follows.
f[x_] := (E^(3 x + 2))HoldForm[(1/Sin[2*x])]
If you type in f[x] , it returns e^(3x+2) (1/Sin[2x])
In order to evaluate it at any time,
ReleaseHold[ f[x]] /. x -> Pi/4
How about using Format
Format
Format[f[x_]] := (E^(3 x + 2))/Sin[2*x] /. Csc[z__] :> HoldForm[ 1/Sin[z]] r = f[4 x]
Then
r /. x -> Pi/3 (* (2*E^(2 + 4*Pi))/Sqrt[3] *) r = f[1] (* E^5 1/Sin[2] *) N[%] (* 163.217 *)