.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #51  
Old August 18th, 2007, 04:50 AM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default 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?
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #52  
Old August 18th, 2007, 12:47 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default 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.
Reply With Quote
  #53  
Old August 18th, 2007, 01:30 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default 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.
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #54  
Old August 18th, 2007, 02:35 PM
Jack Simth's Avatar

Jack Simth Jack Simth is offline
Major General
 
Join Date: Oct 2002
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
Jack Simth is on a distinguished road
Default Re: OT: Looking for a good physics site

Google is your friend.

Looks like someone already did the work.
__________________
Of course, by the time I finish this post, it will already be obsolete. C'est la vie.
Reply With Quote
  #55  
Old August 18th, 2007, 02:51 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default 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.
Reply With Quote
  #56  
Old August 18th, 2007, 03:26 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default 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.
Reply With Quote
  #57  
Old August 18th, 2007, 04:44 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default 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.
Reply With Quote
  #58  
Old August 18th, 2007, 08:23 PM

Renegade 13 Renegade 13 is offline
General
 
Join Date: Sep 2003
Posts: 3,205
Thanks: 0
Thanked 0 Times in 0 Posts
Renegade 13 is on a distinguished road
Default Re: OT: Looking for a good physics site

I remember now why I hate math!
__________________
Courage doesn't always roar. Sometimes courage is that little voice at the end of the day that says "I'll try again tomorrow".

Maturity is knowing you were an idiot in the past. Wisdom is knowing that you'll be an idiot in the future.

Download the Nosral Confederacy (a shipset based upon the Phong) and the Tyrellian Imperium, an organic looking shipset I created! (The Nosral are the better of the two [img]/threads/images/Graemlins/Grin.gif[/img] )
Reply With Quote
  #59  
Old August 19th, 2007, 04:33 AM
AngleWyrm's Avatar

AngleWyrm AngleWyrm is offline
Second Lieutenant
 
Join Date: Mar 2005
Location: Seattle, WA
Posts: 417
Thanks: 0
Thanked 0 Times in 0 Posts
AngleWyrm is on a distinguished road
Default 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
Reply With Quote
  #60  
Old August 20th, 2007, 06:59 AM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default 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.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:20 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.