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
marethyu1:
20190304 20:53:43
Easy with bisection method! 

cgiosy:
20180601 03:44:32
Sample Input:


prasoonbatham:
20170526 06:16:39
Newton raphson with initial approximation of x = c/a; 

Anuj Arora:
20160804 22:55:05
Single shot AC ....both Bisection and Newton Raphson 

Pratik Parwal:
20150901 21:07:21
my 200th :)


dwij28:
20150829 21:24:16
No clue how 6 iterations are working for some people, i tried 6 iterations by initialy guessing sinx to be 1 and also guessing sin x to be 0. Had 2 WA. Went for 50 iterations. AC it is .. Learnt Newton Raphson :) 

Vikrant Singh:
20150826 19:14:19
Got WAs due to fewer iterations :P 

shantanu tripathi:
20150811 08:24:21
can be done without newtons raphson.... bytlandian method is enough :) 

Shrey:
20150622 16:01:45
getting correct answer for many cases I checked. please check solution id 14512916.


[Mayank Pratap]:
20150621 08:06:02
Nice problem to learn binary search ....especially for beginners like me... :) 
Added by:  Saransh Bansal 
Date:  20120217 
Time limit:  0.286s 
Source limit:  50000B 
Memory limit:  1536MB 
Cluster:  Cube (Intel G860) 
Languages:  All except: ASM64 