Post Reply 
Programming Exercise (HP-15C, 15C LE - and others)
03-25-2014, 11:46 PM
Post: #34
RE: Programming Exercise (HP-15C, 15C LE - and others)
on my HP50 with UBasic this take 5.5 Sec

Code:

suma=0
for n= 10000 to 1 step -1
  suma= suma + (1 / n)* (-1)^ (n+1)
next
fix 10.9
print
print "Sum ="; suma
end

result:

UBasic v 0.2b (C)
Suma =0.693097183
ready!

press << ON >>
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-25-2014 11:46 PM



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