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: [mg90863] Re: [mg90834] Cos[a x - b] displayed as Cos[b - a x]
  • From: "Thomas Dowling" <thomasgdowling at gmail.com>
  • Date: Sat, 26 Jul 2008 04:24:22 -0400 (EDT)
  • References: <200807251018.GAA12246@smc.vnet.net>

Hello,

It may be worthwhile checking out HoldForm.


exp = HoldForm[Cos[a x - b]]

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


Evaluate[exp] // ReleaseHold


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



On Fri, Jul 25, 2008 at 11:18 AM, HO JEE HOU <Jeehou.Ho at nottingham.edu.my>
wrote:

> Dear all,
>
> 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?
>
> Thank you very much.
>
> Best regards,
> Ho
>
>


  • Prev by Date: Re: Cos[a x - b] displayed as Cos[b - a x]
  • Next by Date: Re: Listplot with colours
  • Previous by thread: Cos[a x - b] displayed as Cos[b - a x]
  • Next by thread: Re: Cos[a x - b] displayed as Cos[b - a x]