For the given function
and given values and , determine the area enclosed by the graphs of the functions y = F(x), y = -C, x = A, and x = B. Here,
and each f_i is either or .
The input file starts with the numbers and , followed by a single line containing without spaces. In this line, a_i and b_i may be omitted, in which case their values are considered . Similarly, should be interpreted as -1 \cdot \sin(-1 \cdot x).
The output file should contain a single line with the required area, represented with a precision of 6 decimal places.
Example 1