Notation for angle wrapping

  • Thread starter billiards
  • Start date
  • #1
billiards
771
15
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.
 

Answers and Replies

  • #2
arildno
Science Advisor
Homework Helper
Gold Member
Dearly Missed
10,089
135
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.
 
  • #3
billiards
771
15
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] ?????
 
  • #4
arildno
Science Advisor
Homework Helper
Gold Member
Dearly Missed
10,089
135
  • #5
Office_Shredder
Staff Emeritus
Science Advisor
Gold Member
2021 Award
5,220
1,176
I would just state explicitly as a sentence "for angles between -180 and 180, define y as...."
 

Suggested for: Notation for angle wrapping

  • Last Post
Replies
1
Views
165
  • Last Post
Replies
4
Views
114
Replies
11
Views
925
  • Last Post
Replies
5
Views
236
Replies
2
Views
313
  • Last Post
Replies
4
Views
290
  • Last Post
Replies
3
Views
250
Replies
0
Views
261
  • Last Post
Replies
19
Views
631
  • Last Post
Replies
5
Views
302
Top