|
|
|
 |
|

August 18th, 2007, 04:50 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: OT: Looking for a good physics site
Why are you randomly rewriting the equation? The way to solve a quadratic equation has already been posted..
Why are you starting with a complete set of values, including time and distance, that you plug in to verify the refactored equations? Where are they coming from?
|

August 18th, 2007, 12:47 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT: Looking for a good physics site
If you thought that was random, you need to look again. I was de-rusting my algebra skills. I know I wasn't using the method that was posted; that was not the point. I was working off the theory that if 'T' is used to solve the equation, then some permutation of the equation could be used to solve for T.
I did not start with a distance value. I calculated it. I use a complete set of values for the simple reason that I can use them to see if the refactored equation is the correct one.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|

August 18th, 2007, 01:30 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: OT: Looking for a good physics site
Getting T^3 as the only factor with T out of a quadratic polynomial looks entirely random to me.
|

August 18th, 2007, 02:51 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT: Looking for a good physics site
@Fyron: Hence why I need to de-rust my algebra skills. It's the circle of maaaaath...
@Jack: I did try google. More than once.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|

August 18th, 2007, 03:26 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT: Looking for a good physics site
Well, I read it and I get the general idea...
Would these be the equations to use? (After removing the 'Z' terms)
Code:
0 = ( (1/4) * (Tax2 + Tay2 + Taz2 - Pam2) ) * t4 +
( Tax * Tvx + Tay * Tvy + Taz * Tvz - Pam * Pvm ) * t3 +
( Tax * Tpx + Tvx2 + Tay * Tpy + Tvy2 +
Taz * Tpz + Tvz2 - Pam * Ppm - Pvm2 ) * t2 +
( 2 * ( Tvx * Tpx + Tvy * Tpy + Tvz * Tpz - Pvm * Ppm ) ) * t +
( Tpx2 + Tpy2 + Tpz2 - Ppm2 )
Code:
P't2 = ( Pam2 * Rbt2 + 2 * Pam * Pvm * Rbt + Pvm2 ) * t2 +
( 2 * Pam * Ppm * (Pam * Rbt + Pvm) - Pam2 * Rbt3 - Pam * Pvm * Rbt2 ) * t +
( (1/4) * Pam2 * Rbt4 - Pam * Ppm * Rbt2 + Ppm2 )
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|

August 18th, 2007, 04:44 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT: Looking for a good physics site
Yaay, the .dll works! Thank you Jack, thank you Fyron, thank you SJ, thank you everyone else who helped!
(Now, I just have to figure out how to modify the .dll for a matching intercept...)
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|

August 19th, 2007, 04:33 AM
|
 |
Second Lieutenant
|
|
Join Date: Mar 2005
Location: Seattle, WA
Posts: 417
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: Looking for a good physics site
Quote:
narf poit chez BOOM said:I was working off the theory that if 'T' is used to solve the equation, then some permutation of the equation could be used to solve for T.
|
Given: D = (1/2) * A * T^2 + V * T + P
T = (-V +/- Sqrt(2AD-2AP+V^2) )/A
A = 5
T = 3
P = 50
V = 15
D = 117.5
3=(-15 +/- Sqrt(2x5x117.5 - 2x5x50 + 15^2))/5
3=(-15 +/- Sqrt(1175 - 500 + 225))/5
3=(-15 +/- Sqrt(900))/5
3=( -15 +/- 30 )/5
3=( 15 or -45 )/5
3=( 3 or -9)
Also:
V = ((D-P)/T) - AT/2
P = D - (T(AT+2V))/2
A = -( (2(-D+P+TV))/T^2 )
--
Mathematica: The new calculator
|

August 20th, 2007, 06:59 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT: Looking for a good physics site
Thanks!
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|

August 20th, 2007, 07:34 PM
|
General
|
|
Join Date: Aug 2000
Location: Ohio, USA
Posts: 4,323
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: Looking for a good physics site
I sent an email to MM, suggesting he read this thread. Here is his comment:
Quote:
They're on the right track, but the basic problem is not spelled out. Is
this person looking for the intercept point, or angle and velocity for one
of the ships? If this is a missile seeking against another, are their
restrictions on the missile's movement? He needs to provide quite a bit more
information.
|
I'm guessing that he means you need different formulas for different aspects of this problem.
|

August 21st, 2007, 11:53 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT: Looking for a good physics site
Well, I'm looking for the straight-line direction for the ship to accelerate in, at its current acceleration, to intercept another ship with the potential for both velocity and acceleration.
But I do have an (Uncommented) .dll for that now.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|