Post Reply 
Programming Exercise (HP-15C, 15C LE - and others)
03-26-2014, 06:20 PM
Post: #40
RE: Programming Exercise (HP-15C, 15C LE - and others)
version for HP PRIME:

Code:

EXPORT TEST2()
BEGIN
  LOCAL suma,n;

  suma:= 0;
  FOR n FROM 10000 DOWNTO 1 DO
    suma:= suma + (1/n)*(-1)^(n+1);
  END;
  MSGBOX("Suma="+suma);
END;

result in about 1 sec !
Suma=.693097183059
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming Exercise (HP-15C, 15C LE - and others) - churichuro - 03-26-2014 06:20 PM



User(s) browsing this thread: 1 Guest(s)