[General boards] [Winter 2021 courses] [Fall 2020 courses] [Summer 2020 courses] [Older or newer terms]

A1 q2


Does the assumption that the 2d Simpson’s rule require nine flops mean given only the values of a, b, c, d, we consider it takes nine flops plus the function evaluations to approximate the integral?

How are the flops counted if some terms in the formula is computed beforehand, so that evaluating the formula may use the already computed value directly?


Yes, the nine flops are given a, b, c, d.
If you save parts and reuse them, and this happens
in considerably many cases, then adjust the flops accordingly.