G的电面题,是什么意思啊?# JobHunting - 待字闺中
R*r
1 楼
Programming: interval halving. Given a continuous function 'f(x)'
and an interval on the x-axis from 'start' to 'end'. It is know
that 'f(x)=0' for exactly one value of 'x' between 'start' and
'end', and that ‘f(x)’ crosses the x-axis at this point. Write a
program that repeatedly cuts in half the interval until the
interval containing 'f(x)=0' is equal or less than 'epsilon' wide.
原题就是这样直接贴上来,一个老印,听不懂他说什么又看不明白题目,数学的东西也好
久没看了,看来是死定了。大家能说说这题目是什么吗?谢谢。
and an interval on the x-axis from 'start' to 'end'. It is know
that 'f(x)=0' for exactly one value of 'x' between 'start' and
'end', and that ‘f(x)’ crosses the x-axis at this point. Write a
program that repeatedly cuts in half the interval until the
interval containing 'f(x)=0' is equal or less than 'epsilon' wide.
原题就是这样直接贴上来,一个老印,听不懂他说什么又看不明白题目,数学的东西也好
久没看了,看来是死定了。大家能说说这题目是什么吗?谢谢。