Problem1148--方程 f(x)的根(equation)

1148: 方程 f(x)的根(equation)

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 42  Solved: 25
[Submit] [Status] [Web Board] [Creator:]

Description

求方程f(x)=2^x+3^x-4^x=0 在[1,2]内的根。
提示:2^x可以表示成exp(x*log(2))的形式(需包含cmath库)。

Input

输入[1,2]的区间值。

Output

输出方程 f(x)=0 的根,x 的值精确小数点 10 位。

Sample Input Copy

1 2

Sample Output Copy

1.5071265916

Source/Category

分治