Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 109 110 [111] 112 113 ... 173

Author Topic: Mathematics Help Thread  (Read 216210 times)

Descan

  • Bay Watcher
  • [HEADING INTENSIFIES]
    • View Profile
Re: Mathematics Help Thread
« Reply #1650 on: September 27, 2014, 08:03:51 pm »

I'm doin' some trig review, and maybe someone can help me out here.

It's about cosine law, and I got this:

Sides are, a = 4, b = 7, c = 8, find angle C in degrees.

The answer I got is 91.02, because 64 - 49 - 16 = -1.

The answer is actually 88.98, which I get if I use 1 instead of -1.

I'm havin' trouble quite grokking why? Is it because either one works, it just depends on whether it's an acute or obtuse angle at C? If so, is there like a handy rule of "If they ask this kind of thing, use the smaller angle" or do I have to just guess? :V
« Last Edit: September 27, 2014, 08:05:28 pm by Descan »
Logged
Quote from: SalmonGod
Your innocent viking escapades for canadian social justice and immortality make my flagellum wiggle, too.
Quote from: Myroc
Descan confirmed for antichrist.
Quote from: LeoLeonardoIII
I wonder if any of us don't love Descan.

Jim Groovester

  • Bay Watcher
  • 1P
    • View Profile
Re: Mathematics Help Thread
« Reply #1651 on: September 27, 2014, 08:16:43 pm »

I get the right answer doing the law of cosines. You must be making an arithmetic error somewhere.
Logged
I understood nothing, contributed nothing, but still got to win, so good game everybody else.

Descan

  • Bay Watcher
  • [HEADING INTENSIFIES]
    • View Profile
Re: Mathematics Help Thread
« Reply #1652 on: September 27, 2014, 08:26:52 pm »

Spoiler (click to show/hide)
Yup. Figured it out. Dropped a negative in the bolded area.
Logged
Quote from: SalmonGod
Your innocent viking escapades for canadian social justice and immortality make my flagellum wiggle, too.
Quote from: Myroc
Descan confirmed for antichrist.
Quote from: LeoLeonardoIII
I wonder if any of us don't love Descan.

DreamThorn

  • Bay Watcher
  • Seer of Void
    • View Profile
    • My game dev hobby blog (updates almost never)
Re: Mathematics Help Thread
« Reply #1653 on: October 10, 2014, 09:14:40 am »

I have to get my math skills back up to scratch, so I'm trying to (re)derive Newton's solution to the two body problem.

I managed to get:

x'' = -GMx / ||x||³

with '' being the second time derivative, x being the vector distance between the two masses as a function of time, and M being the sum of the masses.

Which is what I expected to get, but now I have to find x.  As far as I know, this is done by guessing forms for x and finding one that fits, and the important clue is that x'' is dependent on -x.

So I tried x(t) = K.exp(ivt+b), with K, v and b are unknown constant vectors and i² = -1, because I think this will have enough freedom for circular, elliptical, parabolic and hyperbolic orbits.

x'' = -v².K.exp(ivt+b) = -v².x        (with v² being v with each element squared; not v dot v.  Similarly, the full stops are per element multiplication, not vector multiplication)
-v².x = -GMx / ||x||³

So either x = 0, or
-v² = -GM / ||x||³
||x||³ = GM/ v²        (So the distance between the masses remains constant, and v must have the same value for all elements)

I think that bringing complex numbers in might have been a mistake, I'll try ordinary trig functions next.

P.S. I mostly wrote this thing so that I could analyze my thought processes, but am posting it in case someone else enjoys reading it.
Logged
This is what happens when we randomly murder people.

You get attacked by a Yandere triangle monster.

Gigaz

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #1654 on: October 10, 2014, 12:59:40 pm »

This result is not very surprising imo. For an elliptical orbit around a heavy object the correct Newtonian solution is the one where the heavy object is in one of the focal points. Your assumption only allows for ellipsoids with a center of mass at x=0.
Logged

Eagle_eye

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #1655 on: October 11, 2014, 11:52:14 am »

Does anyone know of a good source for learning tensor analysis that I could acquire without paying money?
Logged

DreamThorn

  • Bay Watcher
  • Seer of Void
    • View Profile
    • My game dev hobby blog (updates almost never)
Re: Mathematics Help Thread
« Reply #1656 on: October 13, 2014, 03:20:21 am »

It seems my mistake was actually that I ignored that x'' is also related to ||x||³, not just x.

I have managed to show now that at least a circular orbit works.  The equations for the other options will have to take into account that the objects speed up as they get closer and slow down as they separate, so these will be more difficult.

@Gigaz: Here x is the difference in position of the two bodies;  a part of the calculation that I did not show, but did first, proved that this is equivalent to one mass being stationary, even though both bodies actually orbit the center of mass.
Logged
This is what happens when we randomly murder people.

You get attacked by a Yandere triangle monster.

frostshotgg

  • Bay Watcher
  • It was a ruse
    • View Profile
Re: Mathematics Help Thread
« Reply #1657 on: October 16, 2014, 08:15:44 pm »

All right, applied mathematics help. I'm making a Evrard Ventilator, I'm having issues figuring out the equations for the tooth and cut-in. Based on the only documentation I can find (p439 in the ebook), I know each half of the tooth is a cardioid, and I know the cut-in is an epitrochoid, but I have no idea what sections of the graph it should be, among other problems. Any ideas?
Logged

DreamThorn

  • Bay Watcher
  • Seer of Void
    • View Profile
    • My game dev hobby blog (updates almost never)
Re: Mathematics Help Thread
« Reply #1658 on: October 17, 2014, 03:54:37 am »

I think the key to figuring that out is understanding why they are cardioids and epitrochoids, specifically.  That should lead to understanding the necessary properties of the curves and then their construction.

I'll keep thinking on this.

EDIT:

I think it goes like this:

1. Pick radii for the two circles. Call these Rin and Rout.  One must be a whole multiple of the other.
2. Pick the depth of the groove.  Call this r.
3. The epitrochoid is such that a circle with radius Rout is rolling on a circle with radius Rin and the traced point is distance (Rout + r) from the center of the rolling circle.
4a. The cardioids are both centered on the circle with radius Rout.
4b. The cardioids are such that their respective sharp points are at the points of the Rout circle that will touch the intersection of the epitrochoid and the Rin circle...
4c. and that they intersect each other at a distance of (Rout + r) from the center of the circle with radius Rout.
« Last Edit: October 17, 2014, 06:47:25 am by DreamThorn »
Logged
This is what happens when we randomly murder people.

You get attacked by a Yandere triangle monster.

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Mathematics Help Thread
« Reply #1659 on: October 17, 2014, 09:15:45 am »

All right, applied mathematics help. I'm making a Evrard Ventilator, I'm having issues figuring out the equations for the tooth and cut-in. Based on the only documentation I can find (p439 in the ebook), I know each half of the tooth is a cardioid, and I know the cut-in is an epitrochoid, but I have no idea what sections of the graph it should be, among other problems. Any ideas?
That's easy to explain. Just imagine one part being held still while the other part rolls around it. The epitrochoid is cut by the tip of the teeth, and the cardioid is cut by the edges of the groove.
Logged

DreamThorn

  • Bay Watcher
  • Seer of Void
    • View Profile
    • My game dev hobby blog (updates almost never)
Re: Mathematics Help Thread
« Reply #1660 on: October 17, 2014, 09:30:13 am »

That's what I said. ;)
Logged
This is what happens when we randomly murder people.

You get attacked by a Yandere triangle monster.

frostshotgg

  • Bay Watcher
  • It was a ruse
    • View Profile
Re: Mathematics Help Thread
« Reply #1661 on: October 17, 2014, 11:23:57 am »

Yes, I can process what's going on. I can't process what the equations are to describe it.
Logged

ZetaX

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #1662 on: October 19, 2014, 07:34:03 am »

If we assume that 2^{dim F(a^i)] is simply the number of fixed points of a^i, then the result as written follows simply by Möbius inversion.
Thus if we take F(a^i) to be the eigenspace of a^i corresponding to the eigenvalue 1, then everything fits.

Also, the proof and statement of that theorem is unnexessarily weird and long.
Logged

ZetaX

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #1663 on: October 20, 2014, 11:59:09 am »

Calculate the Eigenspace with any method you want; you essentially need to solve the equation a^i v = v, which is homogeneous and linear.

If you want to use that formula to calculate the number of p-loops, then you would factorize p first, then calculate a^d for all divisors d of p (use fast exponentiation; you can also do it iteratively), then find the eigenspace dimensions (Gauß' algorithm or whatever else that works), then apply the formula.
Logged

ZetaX

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #1664 on: October 21, 2014, 02:07:40 pm »

You are working in IZ/2 aka IF_2 aka the field with two elements (can't better format that here, I used I to denote a second stroke both times): 2 is the same as 0 there, and thus 1 is the same as -1, too.
Logged
Pages: 1 ... 109 110 [111] 112 113 ... 173