3.5 The infinite series
\(f(n) = \sum_{i=1}^{n} \frac{1}{i^4}\)
converges on a value of \(f(n) = \frac{\pi^4}{90}\) as n approaches infinity.
Write a program in single precision to calculate f(n) for n = 10,000
by computing the sum from i = 1 to 10,000. Then repeat the calcu-
lation but in reverse order—that is, from i = 10,000 to 1 using incre-
ments of ?1. In each case, compute the true percent relative error.
Explain the results.