Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Extensive replacement of trigonometric functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125007] Extensive replacement of trigonometric functions
  • From: Mauro <pippo at hotmail.com>
  • Date: Fri, 17 Feb 2012 06:26:41 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

Hello to everybody.

I have this problem: I would like to replace in a long expression all 
the occurrences of:

Sin[\[Theta]_ + \[Pi]/6] and Sin[\[Theta]_ - \[Pi]/6]

with respectively:

-Cos[\[Theta] + (2 \[Pi])/3] and Cos[\[Theta] - (2 \[Pi])/3]

(which actually are the same thing).
Regretfully, the application of the rules:

Sin[\[Theta]_ + \[Pi]/6] -> -Cos[\[Theta] + (2 \[Pi])/3]
Sin[\[Theta]_ - \[Pi]/6] -> Cos[\[Theta] - (2 \[Pi])/3]

results in a flop, since sine functions stubbornly appear again!

Can you help me?

Thank you in advance

Mauro



  • Prev by Date: Re: Using .NET/Link on 64-bit Windows Server 2008
  • Next by Date: Re: two ordinate graphics in MA
  • Previous by thread: Re: Changing the argument
  • Next by thread: Re: Extensive replacement of trigonometric functions