Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Notation for angle wrapping

  1. Sep 29, 2013 #1
    Hi I am looking for the proper notation to represent angle wrapping in a mathematical function.

    For example if I have a function of the form:

    y=exp(θ)

    (and θ is an angle in degrees.)

    How do I write this function to explicitly assert that: -180 ≤ θ < 180 ?

    So that for example if one had an angle of numerical value 190, then θ = -170.
     
  2. jcsd
  3. Sep 29, 2013 #2

    arildno

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member
    Dearly Missed

    Take your number A, divide it by 360. If the new number's absolute value is less than or equal to 1/2, keep the number A. Otherwise, subtract 360 from A if it's positive, add 360 if A is negative. Then repeat process with division by 360.
     
  4. Sep 29, 2013 #3
    Sure. To be clear though, I'm not looking for the numerical recipe. I'm looking for the notation. How would one write this in a formula?

    i.e.

    [itex] y = exp(\theta) [/itex]

    would be written like how, something like this??? :

    [itex] y = exp([\theta]^{180}_{-180}) [/itex] ?????
     
  5. Sep 29, 2013 #4

    arildno

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member
    Dearly Missed

  6. Sep 29, 2013 #5

    Office_Shredder

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    I would just state explicitly as a sentence "for angles between -180 and 180, define y as...."
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Notation for angle wrapping
  1. Notation (Replies: 2)

  2. Interval notation (Replies: 4)

  3. Order notation (Replies: 3)

  4. Notation question (Replies: 4)

Loading...