HP 39gii Tutorial: REPEAT and WHILE
|
|
« Next Oldest | Next Newest »
|
▼
03-18-2013, 10:52 PM
▼
03-19-2013, 07:20 AM
Hi Eddie here is an improved version of your SQFACTOR program :
EXPORT SQFACTOR(N) So SQFACTOR(400) returns "20" and not "4 √ 25"
Edited: 19 Mar 2013, 7:26 a.m. ▼
03-20-2013, 11:25 AM
Thanks Giles! I am going to test this out ▼
03-20-2013, 03:27 PM
Here is an interesting program by C.RET posted on silicium.org
EXPORT RAC(X)
Change V by square root symbol
▼
03-20-2013, 04:10 PM
I did not know we could initialize and localize variables in one step. This will make things more efficient. Gilles, is it OK if I post your program in my next blog entry? Credit will be given. Eddie ▼
03-20-2013, 04:26 PM
Hi Eddie, this program is not by me, but by C.RET.
03-20-2013, 06:35 PM
Eddie you are welcome. No problem at all, I consider this code has already fallen into the public domain since I posted it this public forum. It was the result of a kid of brain storm threat. Several people were involved in the discussion. Gilles is one of them. Please feel free to publish it, as soon as you are kind enough to indicate references of the peoples and the Silicium.org forum.
www.silicium.org/forum The HP-39gii is really an amazing system. Every day, we discover new capabilities; the localization and initialization in one shot is one of its numerous features. The Silicium.org forum is really active, we already analyze this first version of the code and turn it into two new versions :
EXPORT RAC(X)The only change is prevprime(I) replacing I:=I-1; expecting speed-up with large numbers.
The last version, is quite more different, it is using the built-in function ifactors that returns the list of prime factors (and multiplicity). This last version has the shortest/fastest look-up loop !
EXPORT RAC( X )
Edited: 20 Mar 2013, 6:40 p.m. |