Freefall Time

Problem #69

Tags: physics

Who solved this?

Previous:Vibrating Strings Next:Freefall Distance


Aristotle was one of the greatest minds in the age of Greek Antiquity. Among his many accomplishments, he developed a comprehensive theory of physics which was held as the dominant model for millennia. Aristotle believed that objects fall downwards because they contain the element Earth, and so want to return to the Earth. Therefore heavier objects are heavier because contain more of the element Earth, and will therefore fall at a faster rate.

In the late 16th Century, over 2000 years after Aristotle, Italian scientist Galileo Galilei challenged this idea. Galileo instead believed that all objects would fall at the same rate, even objects of greatly different weights (neglecting any effects of air resistance).

To challenge the model, Galileo used a revolutionary and powerful new tool which was being developed at the time - the Scientific Method. He designed an experiement which, based on the results, would either prove or disprove the model. And so Galileo carried with him two spheres of different weights to the top of the Leaning Tower of Pisa then dropped them off of the edge, allowing them to freefall until they hit the ground simultaneously - in a moment proving Aristotle's model false.

Problem Statment

Let's imagine that Galileo dropped the spheres from a tower of height H meters. How many seconds would it take for the spheres to reach the ground after being released?
Assume acceleration due to gravity is constant g = -9.8 m/s^2

Input Data
First line is Q, the quantity of testcases.
Q lines then follow, each with a single value H.

Answer
Should consist of space-separated values corresponding to the seconds of freefall before the object hits the ground when dropped from each given height.
Error should be less than 1e-6.

Example

input data:
2
1.234
987654.321

answer:
0.501833 448.956686
You need to login to get test data and submit solution.