1812: 二分法求函数的零点

Memory Limit:256 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

有函数:f(x)=x^5−15x^4+85x^3−225x^2+274^x−121
已知f(1.5)>0 ,f(2.4)<0 且方程f(x)=0 在区间[1.5,2.4] 有且只有一个根,请用二分法求出该根。

Input

Output

该方程在区间[1.5,2.4]中的根。要求四舍五入到小数点后6位。

Sample Input Copy

Sample Output Copy