MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: TrigExpand


Detlef Mueller wanted Mathematica to express Sec, Csc, ...  in terms of Sin,
Cos, Tan. 

You can install my HoldTemporary package posted at 
http://www.mathsource.com/Content/Enhancements/System/0211-587 
Then evaluate the expression below and everything will be formatted the way
you want.


Needs["Enhancements`HoldTemporary`"];
$PrePrint=HoldTemporary@@(
   (Hold@@{#/.
 
{Sec[x_]:>1/cos[x],Csc[x_]:>1/sin[x],Cot[x_]:>1/tan[x],Sech[x_]:>1/cosh[x],C
sch[x_]:>1/sinh[x]}
   })/.
   {cos®Cos,sin®Sin,tan®Tan,cosh®Cosh,sinh®Sinh}
)&;

-----------
Regards,
   Ted Ersek 
   Get Mathematica tips, tricks from
   http://www.verbeia.com/mathematica/tips/Tricks.html



  • Prev by Date: Difference between Get[] and Copy-Past operation
  • Next by Date: Change of Variables
  • Previous by thread: Re: TrigExpand
  • Next by thread: Re: TrigExpand