Question: product versus mul

Hello,

Just a small question: what's the difference between writing

product( (2*i-1) mod 3 + 1, i=1..10 )

which incorrectly gives 105411381075, and writing

mul( (2*i-1) mod 3 + 1, i=1..10 )

which correctly gives 432...

And what's the reasoning behind this?

-- Regards,

Franky

Please Wait...