Wtf is a quadratic formula?

News and important info, general banter, and suggestions for 5punk

Moderator: Forum Moderators

friznit
Heavy
Heavy
Posts: 5147
Joined: October 3rd, 2005, 21:51
Location: South of England
Contact:

Wtf is a quadratic formula?

Post by friznit »

I remember doing A level maths about a thousand years ago, but can't for the life of me remember how to do these. Can anyone help solve this? I need working too, or just an explanation how to do it so I can solve it myself.

I hit a baseball directly over 2nd base into shallow centre field (largely irrelevant baseball reference)

1. How far does the ball fly before hitting the ground?
2. How long was the ball in the air?

The height of the ball as a function of distance relative is:
h = -0.05d^2 + 2.8d + 1

The height of the ball as a function of time is:
h = -6.3t^2 + 31.4t + 1

Note:
- ^ means to the power of.
- You need to use the Quadratic Formula to solve this.
amblin
Zombie Spanger
Zombie Spanger
Posts: 2663
Joined: October 22nd, 2004, 11:50

Post by amblin »

.
Last edited by amblin on May 6th, 2014, 9:58, edited 1 time in total.
Lateralus
Dr Zoidberg
Dr Zoidberg
Posts: 4217
Joined: May 15th, 2005, 15:20

Post by Lateralus »

I used to be ace at these, but it's been at least 6 years since I've done one, and I haven't really got time to refresh myself on it just at the moment. The basics are all on that page that amblin linked to, but it's very simple once you know what you're doing. Obviously.
friznit
Heavy
Heavy
Posts: 5147
Joined: October 3rd, 2005, 21:51
Location: South of England
Contact:

Post by friznit »

Cool, that helped a lot. I plugged all the numbers in the equation and came up with:

Distance function

h=1.99, h=23.77

Time function

h=1.98, h=0


Now to answer the actual question. How do these relate to each other to get the total distance before hitting the ground and time it was in the air? My brain is approaching melt down.
Dog Pants
Site Moderator
Site Moderator
Posts: 21653
Joined: April 29th, 2005, 13:39
Location: Surrey, UK
Contact:

Post by Dog Pants »

Oh my word, this is making my terrible hangover much, much worse.
fabyak
Home-made Big Daddy
Home-made Big Daddy
Posts: 5681
Joined: October 14th, 2004, 14:02
Location: Oxford, England

Post by fabyak »

http://plus.maths.org/issue30/features/ ... -gifd.html

The bit next to the picture of an ill car looks like it could do the job
bomberesque
Optimus Prime
Optimus Prime
Posts: 1100
Joined: November 26th, 2004, 22:23
Location: Belgium
Contact:

Post by bomberesque »

Friz

quadratic equations give you 2 solutions for each parameter when H=0, in your case the answers are;

Distance function

d=1.99, d=23.77

Time function

t=1.98, t=0

This is because the ball is at height = 0 twice in its arc. At the end of its arc and (confusingly) just before you throw it (the formula gives the whole curve, arcing back from your throwing arm to the ground behind you, as if the ball came from there at some small negative value of t.

I think you got the numbers wrong out of teh quad equation though, I believe they are

when H=0, t = -0.3 or 5.02 and d = -0.35 or 56.35

The negative figures are the ones corresponding to the solution of teh ball having come, not from your arm, but from behind you along the same trajectory and are as such a nonsense result. The ones you want are the positive ones, thus the ball flies for 5.02 seconds and goes 56.35, as it's baseball, it's probably feet :P

to confirm, plug the figures back into your original formula and you should get H=0 in both cases, if not then I made an error and you should run the numbers through the quad equation again

can you tell I'm bored? :P

btw, I've just realised, this is to do with trejectories of nondirect fire, isbn't it? this has more to do with cannons than baseball, I'd warrant
fabyak
Home-made Big Daddy
Home-made Big Daddy
Posts: 5681
Joined: October 14th, 2004, 14:02
Location: Oxford, England

Post by fabyak »

:above: 8)
Baliame
Tremors Worm
Tremors Worm
Posts: 3491
Joined: October 13th, 2007, 23:43
Location: Hungary

Post by Baliame »

Okay well my solution (may have been solved, didn't bother to scroll down):

We have two equations:
-0.05d^2 + 2.8d + 1 = 0
-6.3t^2 + 31.4t + 1 = 0
Since the coefficient, in both of the equations, of the quadratic member is negative, we're going to get parabolas which have a maximum.

First, let's see if the equations have real solutions (though I doubt that balls fly for negative time or distance in baseball)

Dd = b^2-4ac = 2.8^2 + 4*0.05 = 7.84 + 0.2 = 8.04 > 0 -> two real solutions
Dt = 31.4^2 + 4*6.3 = 985.96 + 25.2 = 1011.16 > 0 -> two real solutions

Okay, let's use the Quadratic Formula on both of the equations
(note: sqrt means square root)
d1 = (-b+sqrt(b^2-4ac))/2a = (-2.8 + sqrt(8.04)) / -0.1 = (-2.8 + 2.835) / -0.1 = 0.035 / -0.1 = -0.35
d2 = (-b+sqrt(b^2-4ac))/2a = (-2.8 - sqrt(8.04)) / -0.1 = (-2.8 - 2.835) / -0.1 = -5.635 / -0.1 = 56.35

t1 = blah blah = -0.3
t2 = blah blah = 5.02

At this point I bothered to scroll around. Note that I might suck at counting though and may have messed something up. My results don't really seem to match any of the above. I tend to fuck these up all the time. Fix'd.

Now, this shows that when the ball hits the ground after 5.02 seconds, it should land at a 56.35 lolwuts distance from you.
Last edited by Baliame on December 18th, 2007, 15:34, edited 2 times in total.
Fear
Zombie
Zombie
Posts: 2032
Joined: August 6th, 2006, 21:45

Post by Fear »

Baliame wrote: <s>Dt = 31.4^2 + 4*6.3 = 985.96 + 25.2 = 1091.16 > 0 -> two real solutions</s>
Dt = 1011.16


Edit: OK I've checked it and Bomber is correct. Baliame would be if his fingers were thinner. :ignore:
Hehulk
KHAAAN!
KHAAAN!
Posts: 4746
Joined: April 18th, 2005, 15:36
Location: Bummingham, England
Contact:

Post by Hehulk »

I think my hangovers comming back :cry:
Baliame
Tremors Worm
Tremors Worm
Posts: 3491
Joined: October 13th, 2007, 23:43
Location: Hungary

Post by Baliame »

Fear wrote:
Dt = 1011.16


Edit: OK I've checked it and Bomber is correct. Baliame would be if his fingers were thinner. :ignore:
Oh yay. I forgot to check the discriminants.
amblin
Zombie Spanger
Zombie Spanger
Posts: 2663
Joined: October 22nd, 2004, 11:50

Post by amblin »

.
Last edited by amblin on May 6th, 2014, 9:58, edited 1 time in total.
friznit
Heavy
Heavy
Posts: 5147
Joined: October 3rd, 2005, 21:51
Location: South of England
Contact:

Post by friznit »

Coolio. I got to the same answer as you guys, but I confess after brainsploding all over my desk after trying to do it manually, I confess I cheated and Googled a nifty Quadratic Equation Solver. Love t'internets
amblin
Zombie Spanger
Zombie Spanger
Posts: 2663
Joined: October 22nd, 2004, 11:50

Post by amblin »

.
Last edited by amblin on May 6th, 2014, 9:58, edited 1 time in total.
friznit
Heavy
Heavy
Posts: 5147
Joined: October 3rd, 2005, 21:51
Location: South of England
Contact:

Post by friznit »

amblin wrote:You mean you didn't make your own in excel? Blasphemy!
Hehe, I did give it a go, but it needed solver installed.
Nickface
Ninja Pirate
Ninja Pirate
Posts: 1568
Joined: November 15th, 2004, 13:13
Location: Detroit, MI, United States
Contact:

Post by Nickface »

Seven.
Roman Totale
Robotic Bumlord
Robotic Bumlord
Posts: 8475
Joined: October 24th, 2004, 0:27
Location: Manchester, UK

Post by Roman Totale »

Nickface wrote:Seven.
:above:
spoodie
Site Moderator
Site Moderator
Posts: 9246
Joined: February 6th, 2005, 16:49
Location: Essex, UK

Post by spoodie »

Nickface wrote:Seven.
By my calculations you are correct.
friznit
Heavy
Heavy
Posts: 5147
Joined: October 3rd, 2005, 21:51
Location: South of England
Contact:

Post by friznit »

That number doesn't exist. It was removed by governmental decree 10 years ago and replaced by the concept Novembergargle
Post Reply