Table 11 Runtime comparison (in seconds) for \({\mathcal {M}} = 7\).
Method | Assembly time | Solve time | Total time |
---|---|---|---|
Spectral collocation | 0.214 | 0.032 | 0.246 |
Finite difference method | 0.873 | 0.158 | 1.031 |
Trapezoidal rule | 0.642 | 0.112 | 0.754 |
Method | Assembly time | Solve time | Total time |
---|---|---|---|
Spectral collocation | 0.214 | 0.032 | 0.246 |
Finite difference method | 0.873 | 0.158 | 1.031 |
Trapezoidal rule | 0.642 | 0.112 | 0.754 |