|
|
|
|
|
by ta123456789
1220 days ago
|
|
> you should not, absolutely not translate math notation to code. I don't see a problem, if eg it helps with getting some intuition. Sure there is a formula for this example. But the point in the article of writing this sum as a for loop is to explain what the notation means. For a programmer who is not familiar with sigma/pi notation for sum/product, explaining it with a for loop is a quick way to understand. |
|