HP Forums
HP 38G, 39G/GS, 40G/GS - Sum Function in Sequence App - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: HP 38G, 39G/GS, 40G/GS - Sum Function in Sequence App (/thread-7092.html)



HP 38G, 39G/GS, 40G/GS - Sum Function in Sequence App - Gerald H - 10-24-2016 10:47 AM

Does the sum function (Greek capital sigma) function in the Sequence App?

This programme

Code:

RECURSE(U,(INT(N)MOD 10)+ (INT(N/10)MOD 10)+( INT(N/100)MOD 10)+( INT(N/1000)MOD 10)+( INT(N/10000)MOD 10)+( INT(N/100000)MOD 10)+( INT(N/1000000)MOD 10)+( INT(N/10000000)MOD 10)+ (INT(N/100000000)MOD 10)+ (INT(N/1000000000)MOD 10)+ (INT(N/10000000000)MOD 10)+ (INT(N/100000000000)MOD 10),1,2)►U1(N):
CHECK 1:

inserts symbolics in the Sequence App to calculate the digital sum of N, sadly my attempts to shorten the programme using the sum function only led to frustration & dysfunction.

Suggestions please.