Session Ready
Exercise

Vectorized operations continued...

We can use some of what we have learned to perform calculations that would otherwise be quite complicated. Let's see an example.

Instructions
100 XP

What is the sum of the following equation: 1 + 1/2^2 + 1/3^2 + ... + 1/100^2? Thanks to Euler we know it should be close to \(\pi^2/6\).

  • Define an object x that contains the numbers 1 through 100
  • Compute the sum 1 + 1/2^2 + 1/3^2 + ... + 1/100^2.