Undergrad Normalized Angular Rotation/Position Equations?

  • Thread starter Thread starter Stargazer43
  • Start date Start date
  • Tags Tags
    Angular
Click For Summary
The discussion focuses on solving dynamic equations for an object rotating around a circle, specifically addressing the normalization of angular position within a 0-360 degree range to avoid discontinuities after a full revolution. The user seeks advice on maintaining a smooth transition between 360 degrees and 0 degrees, suggesting the use of modulo operations for normalization. Additionally, there is a need to model a variable that decays based on the angular position, but initial attempts using sine ratios proved ineffective due to angle ambiguity. The user aims to minimize conditional statements in their calculations to improve convergence when using the Newton method. Overall, the conversation highlights the challenges of accurately modeling angular dynamics without introducing discontinuities.
Stargazer43
Messages
7
Reaction score
0
TL;DR
Trying to describe position on a circle as a function of time within 0-360 degrees, without creating a discontinuity when the angle goes from 360-degrees back to 0.
I'm trying to write a program to solve a series of dynamic equations, and ran into one stumbling block that seems like it should be easy to resolve. Basically, I'm trying to solve for the angular position of an object rotating around a circle, and to specify certain conditions on the circle when the object passes over it. These conditions would not be active on the rest of the circle. This is far enough outside the realm of what I usually get involved with that I could use some advice! I have a series of discretized equations for each position on the circle. The issues I was running into were the following:

1.) I can easily solve for the angular position as a function of time by using RPM = Angle/Time, but the issue is that my circle is only 0-360 degrees. After one revolution the reported angle will be >360, and arbitrarily resetting it back to 0 creates a major discontinuity that throws off the equation solvers I'm using. Is there a way to normalize the angle so that there will be a smooth transition between 360 degrees and 0 degrees, and to keep the final angular value within the range of 0-360?

2.) For each position on the circle, I want to set the value of a variable x=1 if the position matches the angle calculated above as a function of time, and have x decay to 0 if the angle is more than 10-degrees apart from that calculated above. Is there a good way to do this? I started off by using a ratio of the values of sin(Angle), but since two different angles can have the same sin value, it wasn't working quite as intended.
 
Mathematics news on Phys.org
Stargazer43 said:
1.) I can easily solve for the angular position as a function of time by using RPM = Angle/Time, but the issue is that my circle is only 0-360 degrees. After one revolution the reported angle will be >360, and arbitrarily resetting it back to 0 creates a major discontinuity that throws off the equation solvers I'm using. Is there a way to normalize the angle so that there will be a smooth transition between 360 degrees and 0 degrees, and to keep the final angular value within the range of 0-360?
Why not keep the angle as it is, and take the modulo when you need to map it in the range 0-360?

Stargazer43 said:
2.) For each position on the circle, I want to set the value of a variable x=1 if the position matches the angle calculated above as a function of time, and have x decay to 0 if the angle is more than 10-degrees apart from that calculated above. Is there a good way to do this? I started off by using a ratio of the values of sin(Angle), but since two different angles can have the same sin value, it wasn't working quite as intended.
I don't understand the issue here. You'll have to give more details.
 
DrClaude said:
I don't understand the issue here. You'll have to give more details.

I am trying to model a localized force of a known magnitude acting on a rotating cylinder. The force is in a constant location, but the cylinder is rotating. The main part I was struggling with is how to mathematically represent the angular position/magnitude of this force on the cylinder as a function of time.

I am solving all of the equations using the Newton method, so I was hoping not to use too many if/then statements or discontinuities since it struggles with that. Any of the approaches I have come up with involve a lot of conditional if/then statements that make it more difficult to converge on a solution.
 
Complex numbers of magnitude 1 correspond to a circle without discontinuity, but usually accepting angles larger than 2pi and then take the modulus when it matters is easier to handle.
 
Here is a little puzzle from the book 100 Geometric Games by Pierre Berloquin. The side of a small square is one meter long and the side of a larger square one and a half meters long. One vertex of the large square is at the center of the small square. The side of the large square cuts two sides of the small square into one- third parts and two-thirds parts. What is the area where the squares overlap?

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 11 ·
Replies
11
Views
7K