A Newton Problem

View as PDF

Submit solution

Points: 7
Time limit: 1.0s
Memory limit: 64M

Problem type

Given A, B, and C, and f(x) = Ax+B \sin(x), find when f(x)=C.

Input Specification

The first line will contain three integers, A, B, C (1 \le B \le A \le 10^5, 1 \le C \le 10^5).

Output Specification

Output a value of x where f(x)=C. Your value of x will be considered correct if |f(x)-C| \le 10^{-5}.

Sample Input

1 1 20

Sample Output

19.4417867

Comments

There are no comments at the moment.