[Date Index] [Thread Index] [Author Index]
Re: Can someone explain this?
Hi Benjamin Sin[x]/Cos[x] is simplified to Tan[x] whenever it occurs in an expression. You can prevent this by wrapping it with HoldForm: In:= x y Tan[x] + Tan[y] /. Tan[z_]->HoldForm[Sin[z]/Cos[z]] Out= x y Sin[x] / Cos[x] + Sin[y] / Cos[y] The expression Sin[x] / Cos[x] is then kept because it is in the Hold status. You can release all holds in an expression with ReleaseHold: In:= % // ReleaseHold Out = x y Tan[x] + Tan[y] Yourse sincerely Bruno