MathGroup Archive 2008

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

Search the Archive

Re: Cos[a x - b] displayed as Cos[b - a x]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90852] Re: Cos[a x - b] displayed as Cos[b - a x]
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sat, 26 Jul 2008 04:22:11 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <g6c9e5$c1d$1@smc.vnet.net>

HO JEE HOU wrote:

> I have an expression which I wish to put it in the form of Cos[a x - b].
> However when I input it to Mathematica, it automatically converted to
> Cos[b - a x]. Similarly, for Sin[a x - b] it would become -Sin[b - ax].
> 
> I understand that both are equivalent, but I just wish to have the form
> of Cos[a x - b]. Is there any way to do this?

You could use *HoldForm[]* to keep the expression as you typed it. For 
instance,

     In[1]:= Cos[a x - b] // HoldForm

     Out[1]= Cos[a x - b]

     In[2]:= Sin[a x - b] // HoldForm

     Out[2]= Sin[a x - b]

See,

http://reference.wolfram.com/mathematica/ref/HoldForm.html

Regards,
-- Jean-Marc


  • Prev by Date: Calculating RMSE from 2D Data
  • Next by Date: Re: Cos[a x - b] displayed as Cos[b - a x]
  • Previous by thread: Re: Cos[a x - b] displayed as Cos[b - a x]
  • Next by thread: Re: Cos[a x - b] displayed as Cos[b - a x]