Table 15 Method comparison at equivalent accuracy (\(\sim 10^{-2}\) error).
Method | \({\mathcal {M}}\) | Time (s) | Memory (MB) | FLOPs |
|---|---|---|---|---|
Spectral collocation | 7 | 0.213 | 62.3 | \(2.1 \times 10^6\) |
Finite difference method | 21 | 0.887 | 92.7 | \(9.4 \times 10^6\) |
Trapezoidal rule | 18 | 0.645 | 81.2 | \(7.2 \times 10^6\) |