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

hide comments
mehmetin: 2012-02-19 16:43:24

@surya
what initial guess did you use?

Last edit: 2012-02-19 16:45:24
Surya kiran: 2012-02-19 14:18:08

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
Saransh Bansal: 2012-02-17 13:52:11

ya

Devil D: 2012-02-17 13:52:11

And the angles are in radians ?


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