TRIGALGE - Easy Calculation

Find x such that Ax+Bsin(x)=C.

Input

The first line denotes T (number of test cases). 3T integers follow denoting A,B and C for every test case. (A >= B > 0). All Integers are less than 100000.

Output

T real numbers rounded to 6 digits one in each line.

Example

Input:
1
1 1 20

Output:
19.441787

Added by:Saransh Bansal
Date:2012-02-17
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64

hide comments
2012-02-19 16:43:24 mehmetin
@surya
what initial guess did you use?

Last edit: 2012-02-19 16:45:24
2012-02-19 14:18:08 Surya kiran
p.s.please check my solution..i am getting WA.but i am sure of answer Id 6530528

Last edit: 2012-02-19 14:35:55
2012-02-17 13:52:11 Saransh Bansal
ya
2012-02-17 13:52:11 Devil D
And the angles are in radians ?
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.