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

    ID: 5294 远端评测题 1000ms 63MiB 尝试: 0 已通过: 0 显示难度提高+/省选− 上传者: 标签>数学递归积分定积分

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

Problem 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