#P4525. 【模板】自适应辛普森法 1
【模板】自适应辛普森法 1
Description
Compute the integral
$\displaystyle{\int_L^R\frac{cx+d}{ax+b}\mathrm{d}x}$
Round the result to decimal places.
The testdata guarantees that the denominator is not during the computation and the integral converges.
Input Format
One line containing real numbers .
Output Format
One line with the value of the integral, rounded to decimal places.
1 2 3 4 5 6
2.732937
Hint
, 且 。
It is guaranteed that each input number has at most one decimal place.
Translated by ChatGPT 5
京公网安备 11011102002149号