#P1553. 方程f(x)的根
方程f(x)的根
Description
求方程f(x)=2<sup>x</sup>+3<sup>x</sup>-4<sup>x</sup>=0在[1,2]内的根。
提示:2<sup>x</sup>可以表示成exp(x*ln(2))的形式。
Input Format
[1,2]的区间值Output Format
方程f(x)=0的根,x的值精确到小数点10位。
1 2
1.5071105957
求方程f(x)=2<sup>x</sup>+3<sup>x</sup>-4<sup>x</sup>=0在[1,2]内的根。
提示:2<sup>x</sup>可以表示成exp(x*ln(2))的形式。
1 2
1.5071105957