Tommy loves lemons, especially those from the lemon tree under the moon. He also likes to eat lemons, but eating too many lemons can make him drunk. Tommy doesn't want to get drunk, so he asks you to find out exactly how much of the lemon he is eating to ensure that he won't be drunk. Help Tommy determine how much lemon he is intaking so that he won't end up on the streets drunk out of his mind.
Tommy puts the cross section of lemon on the plane and centers it at the origin point, . He will give you queries and ask you for the area of the cross section of lemon between the intervals and . All of the lemons Tommy has can be represented by the equation , and Tommy will provide you , , and for each query.
Constraints
Input Specification
The first line is a positive integer , denoting the number of queries.
The next lines will each contain four space-separated integers, , , and .
Output Specification
For each query, output on a new line the area of the lemon in the given interval.
Note: Your output will be accepted if it is within of the expected output.
Sample Input
4
1 1 -2 2
1 1 -1 0
2 1 -1 0
1 1 -5 -4
Sample Output
3.000
1.500
1.938
0.000
Comments