Just found a bug in the pow Function
result = pow (x,y)
pow (2,0) = 1 (ok )
pow (2,1) = 2 ( ok )
pow (2,2) = 3 ( ? )
pow (2,3) = 7 ( ? )
if y is greater than 1 the result is wrong by -1
I resolved this by doing if ( y > 1) {result = result +1 } but i think it is still u bug .
Function pow (x,y)
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Function pow (x,y)
Hi Alan,
Thanks for sharing, which chip pack are you finding this on? Is it also a problem in the simulation?
Thanks for sharing, which chip pack are you finding this on? Is it also a problem in the simulation?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel