题目
An algorithm for finding the positive real root of the equation is described by the flow chart shown in Figure 2.
(a) Use the flow chart, with , to complete the table in the answer book, stating values to at least 6 decimal places. Give the final output correct to 5 decimal places.
Given that the value of the input is a non-negative real number,
(b) determine the set of values for that cannot be used to find the positive real root of using this flow chart.
题目中文翻译
一个用于找到方程 正实根的算法由图 2 中的流程图描述。
(a) 使用流程图,取 ,完成答案本中的表格,数值至少精确到 6 位小数。最终输出精确到 5 位小数。
已知输入 的值是非负实数,
(b) 确定不能使用此流程图找到 正实根的 值集合。
解答
(a)
解法一
思路
展开
每轮先用当前的 计算 ,再检查 是否落在 。若否,就令新的 并继续;若是,则输出当前的 。中间值保留至少 6 位小数,避免过早舍入影响停止条件。
答题过程
展开
Using
the iterations are:
| Is ? | ||
|---|---|---|
| No | ||
| No | ||
| No | ||
| No | ||
| No | ||
| Yes |
Therefore the final output, correct to 5 decimal places, is
(b)
解法一
思路
展开
流程图每轮都要计算一个四次方根。要在实数范围内继续,根号内必须非负;等于 0 时仍可计算,所以不能使用的范围必须是严格不等式。
答题过程
展开
For to be real, it is necessary that
Thus the flow chart cannot be used when
which gives
Equivalently, the unusable set is