[WP34S] A funny bug in Pi (prod) Message #1 Posted by Eduardo Duenez on 27 Jan 2013, 11:33 p.m.
Hi,
I was using my 34S flashed to recent 3350 calc-full.bin
I had never used the sum (Sigma) and product (Pi) functions.
I coded the identity function f(x)=x trivially:
LBL B
RTN
Then I tried adding 1+2+...+10 with Sigma:
1
[ENTER]
10
[SIGMA]
B
Output: 55 (correct).
Then tried to find 10! instead
1
[ENTER]
10
[PI]
B
Output: 0 (should be 10!=3628800)
There is a funny bug in the implementation of PI (product), but not in SIGMA.
Cheers,
Eduardo
|