HP Forums
Prime calculator sum(1.0002^n/n, 1, 20000) - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Prime calculator sum(1.0002^n/n, 1, 20000) (/thread-16078.html)

Pages: 1 2


Prime calculator sum(1.0002^n/n, 1, 20000) - Gil - 12-27-2020 03:04 AM

How to calculate
sum(1.0002^n/n, 1, 20000)
with the build-in template sigma?

To get an approximate answer,
I have to calculate
sum(1.0002^n/n, 1, 10000) + sum(1.0002^n/n, 10001,20000) = 10.9246.

Somewhat cumbersome.

On the HP50G, I get the wished answer by writing
directly sum(1.0002^n/n, 1, 20000).

Thanks for your help.

Regards,
Gil


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - Joe Horn - 12-27-2020 04:16 AM

It works directly in Home, summing 1.0002^X/X from 1 to 20000. Summations in Home apparently do not have the same restriction as CAS. BTW, I think that the correct result is approximately 28.1439738, not 10.9246.


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - toml_12953 - 12-27-2020 04:27 AM

(12-27-2020 03:04 AM)Gil Wrote:  How to calculate
sum(1.0002^n/n, 1, 20000)
with the build-in template sigma?

To get an approximate answer,
I have to calculate
sum(1.0002^n/n, 1, 10000) + sum(1.0002^n/n, 10001,20000) = 10.9246.

Somewhat cumbersome.

On the HP50G, I get the wished answer by writing
directly sum(1.0002^n/n, 1, 20000).

Thanks for your help.

Regards,
Gil

In BASIC I get 28.14397384


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - Gil - 12-27-2020 10:37 AM

You are right, I forgot one zero.

A pity anyway to have to switch to HOME to get a simple result.

Observation
To be able to enter the beginning value for n (under the sigma-summation-sign) and the last summation value of n, I had to select TEXTBOOKS notation.

Is it possible to write it "normally" in ALGEBRAIC mode
(or in RPN like in the equation writer of the HP50G)?

Regards,
Gil


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - toml_12953 - 12-27-2020 10:53 AM

(12-27-2020 10:37 AM)Gil Wrote:  You are right, I forgot one zero.

A pity anyway to have to switch to HOME to get a simple result.

Observation
To be able to enter the beginning value for n (under the sigma-summation-sign) and the last summation value of n, I had to select TEXTBOOKS notation.

Is it possible to write it "normally" in ALGEBRAIC mode
(or in RPN like in the equation writer of the HP50G)?

Regards,
Gil

the CAS sum() function is the discrete sum, related to an integral, not an algebraic sum. Are they the same? I'm not a mathematician, so someone else will have to answer.


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - Steve Simpkin - 12-27-2020 01:46 PM

By the way, how long did this summation take to run on the Prime?
G1 vs G2?

I noted the following calculation times (in minutes:seconds) on some of the calculators I tried it on.

Casio fx-CG50
1:13

TI-89
10:40

TI-92
18:55


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - Tyann - 12-27-2020 03:17 PM

(12-27-2020 01:46 PM)Steve Simpkin Wrote:  By the way, how long did this summation take to run on the Prime?
G1 vs G2?

I noted the following calculation times (in minutes:seconds) on some of the calculators I tried it on.

Casio fx-CG50
1:13

TI-89
10:40

TI-92
18:55

Hello
G1: 1,7 sec
G2: 0,7 sec


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - Gil - 12-27-2020 05:32 PM

Just for your information

Summation from 1 to 20 000
of '1.00002^n/n'

gives on my phone Samsung Galaxy S6
with emulated calculator HP50G
with the EMU48 application:

4'12" (calculator "emulated" / original speed)
and 10.9" (full speed).

Regards,
Gil


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - Gil - 12-27-2020 05:35 PM

Sorry, full speed gives 8.9"
on my Galaxy S6 Emu48/HP50G.

Regards,
Gil


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - StephenG1CMZ - 12-27-2020 05:43 PM

Perhaps the 10 000 limit is related to the size of lists, which are limited to 10 000 items on the HP Prime?

How about
[incorrect formula deleted]
See my later post


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - lrdheat - 12-27-2020 05:56 PM

HP Prime G2: <0:01
TI NSpire 2 (no CAS): 0:09
CASIO fx-CG50: 1:14
CASSIO CLASSPAD (fx-CP400): 6:49
CASSIO fx-991EX: 17:38

The TI Nspire was a bit high beginning with 9th decimal (28.143973835105)


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - John Keith - 12-27-2020 07:03 PM

(12-27-2020 03:04 AM)Gil Wrote:  On the HP50G, I get the wished answer by writing
directly sum(1.0002^n/n, 1, 20000).

For the HP 50, the correct syntax is '\GS(n=1, 20000, 1.0002^n/n)' where \GS is the Sigma character (right-shift S).

On a physical HP 50g, I get 28.1439738407 in 354.6 seconds, or just under 6 min.


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - lrdheat - 12-27-2020 08:07 PM

Similar for me on HP 50g using evaluate the term from the equation writer.

CASSIO fx-115ES Plus: 1:26:29

TI-36X Pro: 1:28:52


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - Gerson W. Barbosa - 12-27-2020 10:43 PM

CASIO fx-991LAX: 28.1439738342463
15 min < t < 18 min


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - Valentin Albillo - 12-28-2020 03:20 AM

(12-27-2020 10:43 PM)Gerson W. Barbosa Wrote:  CASIO fx-991LAX: 28.1439738342463
15 min < t < 18 min

Thomas Okken's awesome Free42 Decimal for Android on a Samsung Galaxy tablet:

         LBL "SUMA"
         20000
         0
         LBL 00
         1.0002
         RCL ST Z
         Y^X
         RCL/ ST L
         +
         DSE ST Y
         GTO 00


[R/S] ->    28.14397383505516924725756564071173    in 2.46 sec.

V.


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - ijabbott - 12-28-2020 10:47 AM

(12-27-2020 05:56 PM)lrdheat Wrote:  CASSIO fx-991EX: 17:38

(12-27-2020 08:07 PM)lrdheat Wrote:  CASSIO fx-115ES Plus: 1:26:29

TI-36X Pro: 1:28:52

For comparison with the above:

TI-30X Pro MathPrint: 20:09 answer: 28.14397384 (28.14397383500)

Slower than its rival Casio fx-991EX on this task.


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - _nmr_ - 12-28-2020 12:59 PM

Casio fx-5800p:
28.14397383, about 29 minutes.


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - StephenG1CMZ - 12-28-2020 02:03 PM

If you wanted one sum rather than two (1-10000 plus 10001-20000) you could use

Sum(1.0002^n/n + 1.0002^(10000+n)/(10000+n),n,1,20000/2)

Which only has 10 000 terms.
But it is no faster than the other expression.
(the formula I tried earlier was incorrect)


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - Joe Horn - 12-28-2020 03:02 PM

(12-28-2020 03:20 AM)Valentin Albillo Wrote:  Thomas Okken's awesome Free42 Decimal for Android on a Samsung Galaxy tablet:

         LBL "SUMA"
         20000
         0
         LBL 00
         1.0002
         RCL ST Z
         Y^X
         RCL/ ST L
         +
         DSE ST Y
         GTO 00


[R/S] ->    28.14397383505516924725756564071173    in 2.46 sec.

Thanks, Valentin! Although I get similar timing with Free42 on my laptop computer, my DM42 takes forever, apparently updating the stack display constantly even though the program contains no display commands. Anybody know how to tell the DM42 not to update the stack display while running? Thanks in advance!


RE: Prime calculator sum(1.0002^n/n, 1, 20000) - Didier Lachieze - 12-28-2020 04:21 PM

(12-28-2020 03:02 PM)Joe Horn Wrote:  Anybody know how to tell the DM42 not to update the stack display while running? Thanks in advance!

You can try with RefLCD set to 0.