#P4525. 【模板】自适应辛普森法 1

【模板】自适应辛普森法 1

Description

Compute the integral

$\displaystyle{\int_L^R\frac{cx+d}{ax+b}\mathrm{d}x}$

Round the result to 66 decimal places.

The testdata guarantees that the denominator is not 00 during the computation and the integral converges.

Input Format

One line containing 66 real numbers a,b,c,d,L,Ra,b,c,d,L,R.

Output Format

One line with the value of the integral, rounded to 66 decimal places.

1 2 3 4 5 6
2.732937

Hint

a,b,c,d[10,10]a,b,c,d\in[-10,10]100L<R100-100\le L<R\le 100RL1R-L\ge1

It is guaranteed that each input number has at most one decimal place.

Translated by ChatGPT 5