東京大学 情報理工学系研究科 コンピュータ科学専攻 2019年8月実施 専門科目II 問題5
Author
祭音Myyura (co-authored with GPT 5.6 SOL)
Description
Suppose that is a real function defined on a closed interval from to . Suppose that is an integer that is no less than 2, and define . Then, for each integer , define and , respectively. Namely, are the points that divide the interval from to into equal parts, and is the value of the function at .
Next, define , and define as the approximate value calculated by the composite trapezoid rule applied on using the points which divide the interval from to into equal parts.
Answer the following questions.
(1) Assume that is a four times continuously differentiable function. Let be an integer such that and define as the second order differential of at . Express an approximate value of whose error is , as a linear combination of , and .
(2) The approximation obtained by question (1) seems to become accurate when approaches zero. Answer, with a reason, whether this is correct or not in the calculation with the IEEE 754 double precision floating point operations.
(3) Express using , and .
(4) Assume that can be expressed by a quadratic function in each interval formed by the division into equal parts. Then, define similarly using the division into equal parts composed of the division of each original part into two halves. Express using and .
题目描述
设实函数 定义在闭区间 上,。取整数 , 令 ;对 ,定义 、。于是 将区间等分为 份。再令
并以 表示在这些等分点上使用复合梯形公式得到的近似值。回答下列问题。
(1)假设 四阶连续可微。对整数 ,用 的线性组合给出 的一个误差为 的近似式。
(2)第(1)问的近似看似会在 时不断变精确。说明在 IEEE 754 双精度浮点运算中这一说法是否正确,并给出理由。
(3)用 以及 表示复合梯形近似 。
(4)假设 在每个原等分小区间上均可由二次函数表示。把每一小区间再二等分,类似定义使用 等分的 。用 和 表示误差 。
Kai
(1)
在 两侧作 Taylor 展开并相加,奇数阶项抵消,得
所以所求近似为
(2)
不一定。三项相消后的分子只有 ,而函数值的浮点舍入误差经除以 被放大。典型总误差为
其中 是单位舍入误差, 表示函数值的尺度。 过小时舍入误差可能占主导,甚至 被舍入成 ,因此不能无限减小 来提高精度。
(3)
(4)
对每段二次函数,梯形公式的单段误差为 ;二等分后两段误差之和为原来的 。逐段相加得 ,因此
在题设“每段为二次函数”的条件下,这是精确等式。