So I hope you spend a few minutes and at least gave it a try, and hopefully you even got the correct
result.
But if not, here is my solution so that you can compare and improve your solution.
And I would always say we don't have to make our lives difficult.
We can just work with what we have and then modify it.
So I copy this code here and then I'm going to create a new cell.
Paste it.
And now we have to, of course, modify this list.
So it's not going from zero to SE, but it's going from minus s half to as half.
You can run this.
And now we can also take this code here and paste it.
And I think this should work already.
Yeah.
You see now just take a shifted and we always rotate around the center.
Now the next thing would be to calculate the kinetic energy based on the analytical results.
So.
Like this and here the items or certain items or the moment of inertia will be one over 12 as square
instead of one of a three.
So this will be the result.
And of course, this is just one over 24.
The numerical results we can compare to this line of code.
And here we don't have to change anything.
It's already correct.
It's just using the updated our list so we can just run this.
And you see the result is pretty good.
So that's the whole thing.
That's the whole solution that I wanted you to do.
And I think it was pretty easy.
But of course, please don't feel discouraged if you had some problems because it can always happen
that you get stuck at some misunderstanding or that is just not working.
But I hope that now when you see the solution, you also agree that it was pretty easy to do.
So one thing that's maybe important to discuss here is that when we compare the kinetic energy of rotating
a stick around an edge, which is something like one point one six seven, and when we compare this
to the rotational energy of rotating a stick around the center, which is zero point zero for two,
this one is much lower.
So it requires much less energy to rotate, stick around the center.
So if you take a stick and you push it in both cases and you apply to same energy, then of course this
one will rotate much, much faster than this one.
And so it's pretty useful to be able to calculate these properties, like the moment of inertia, which
is then, of course, directly related to the rotational energy as we have just figured out.