WP43 Bug Reports and Maintenance

This area is for discussion about these families of custom high-end Scientific Calculator applications for SwissMicros devices.
User avatar
Jaymos
Posts: 1635
Joined: Sun Nov 04, 2018 7:03 pm
Location: Cape Town

Re: 43S Bug Reports and Maintenance

Post by Jaymos »

BINUBALL wrote:
Sat Mar 25, 2023 3:43 pm
Integration accuracy issue. I'm using version 0.23.9 windows simulator.

∫ x(sin x+cos x+1) dx from 0 to 10^3

LBL 'f(x)'
MVAR 'x'
RCL 'x'
sin
RCL 'x'
cos
+
1
+
RCL 'x'
×
END

ACC: 1e-9, ↓Lim:0, ↑Lim: 1e3

WP43 gives 483662.530…, where correct value is about 500264.890…. An upper limit of integral's uncertainty(stack register Y) is 435276.691…. Surprisingly big compared to integration of the same function from 0 to 10^2.(which is 1.923e-16)
Using C47 sim, which uses the same integration code from WP43, the EQN method of integrating the same formula renders exactly the same result, to all decimals quoted up here. I do not profess to know the answer here.

However, this formula illustrates another unexpected (for me as the author) graphing result: aliasing! Due to the limited number of x-steps of the graph and the extreme number of oscillations in between those x-steps and due to pot luck of how close multiples of the oscillation period (\(2pi\)) are to the regular distance between x-steps of the graph, you may actually see no change in the graph, or some weird stuff not representative of the function, see below:
.
20230325-18230700.bmp
20230325-18230700.bmp (12.31 KiB) Viewed 1466 times
Impossible graphing result from \(x = 0\) to \(1000\).

There are many ways to prove the aliasing, in this case simply shift the graph range to: \(x = \pi/2\) to \(1000-\pi/2\):
.
20230325-18274700.bmp
20230325-18274700.bmp (12.31 KiB) Viewed 1466 times
This of course still is wrong as a quick look at the range of \(x = 500\) to \(500+12\pi\) shows:
.
20230325-18430700.bmp
20230325-18430700.bmp (12.31 KiB) Viewed 1466 times
Jaco Mostert
Elec Eng, South Africa
https://47calc.com C47 (s/n 03818 & 06199), WP43 (0015). In box: HP42S, HP32Sii, WP34S&C, HP28C, HP35s, EL-506P, EL-W506, PB700; ex: FX702P, 11C, HP67 & HP85; iOS: 42s Byron, Free42+, WP31S/34S, HCalc.
User avatar
BINUBALL
Posts: 46
Joined: Fri Jan 28, 2022 3:48 am
Location: South Korea

Re: 43S Bug Reports and Maintenance

Post by BINUBALL »

Jaymos wrote:
Sat Mar 25, 2023 5:56 pm
BINUBALL wrote:
Sat Mar 25, 2023 3:43 pm
Integration accuracy issue. I'm using version 0.23.9 windows simulator.

∫ x(sin x+cos x+1) dx from 0 to 10^3

LBL 'f(x)'
MVAR 'x'
RCL 'x'
sin
RCL 'x'
cos
+
1
+
RCL 'x'
×
END

ACC: 1e-9, ↓Lim:0, ↑Lim: 1e3

WP43 gives 483662.530…, where correct value is about 500264.890…. An upper limit of integral's uncertainty(stack register Y) is 435276.691…. Surprisingly big compared to integration of the same function from 0 to 10^2.(which is 1.923e-16)
Using C47 sim, which uses the same integration code from WP43, the EQN method of integrating the same formula renders exactly the same result, to all decimals quoted up here. I do not profess to know the answer here.

However, this formula illustrates another unexpected (for me as the author) graphing result: aliasing! Due to the limited number of x-steps of the graph and the extreme number of oscillations in between those x-steps and due to pot luck of how close multiples of the oscillation period (\(2pi\)) are to the regular distance between x-steps of the graph, you may actually see no change in the graph, or some weird stuff not representative of the function, see below:
.
20230325-18230700.bmp
Impossible graphing result from \(x = 0\) to \(1000\).

There are many ways to prove the aliasing, in this case simply shift the graph range to: \(x = \pi/2\) to \(1000-\pi/2\):
.
20230325-18274700.bmp

This of course still is wrong as a quick look at the range of \(x = 500\) to \(500+12\pi\) shows:
.
20230325-18430700.bmp
Maybe WP43's integration method couldn't handle these functions well. In contrast using Free42, it gives result with excellent precision.(500264.890)
S.Korean / HP-50G | fx-570EX | fx-570CW | HP-200LX
Thomas_ER
Posts: 192
Joined: Mon Jul 24, 2017 3:19 pm
Location: Germany

Re: 43S Bug Reports and Maintenance

Post by Thomas_ER »

small bug in simulator:
Running program SPIRAL (pre-populated programs (following discussion of an Issue))
in Windows Simulator (version WP43 v0.23.10 2023-03-26) crashes the Simulator.
(Calling this program via CATALOG, PROGS, RAM also crashes the Simulator)
It's running fine on real hardware.
[ HP48/49/50/42S/WP34/HP Prime/ DM42 (#00185+00318) ]
User avatar
Walter
Posts: 3070
Joined: Tue May 02, 2017 11:13 am
Location: On a mission close to DRS, Germany

Re: 43S Bug Reports and Maintenance

Post by Walter »

Thomas_ER wrote:
Tue Mar 28, 2023 10:25 pm
Running program SPIRAL (pre-populated programs) in Windows Simulator (version WP43 v0.23.10 2023-03-26)
crashes the Simulator.
(Calling this program via CATALOG, PROGS, RAM also crashes the Simulator)
Hmmh, no crash on my custom build of 2023-03-11 for the simulator: RESET, XEQ PROG SPIRAL
spiral.png
spiral.png (2.96 KiB) Viewed 1354 times
Crash confirmed for v0.23.10 for the simulator, however.
No crash on my custom build of 2023-03-16 for the calculator HW.
Last edited by Walter on Tue Mar 28, 2023 11:04 pm, edited 1 time in total.
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
Thomas_ER
Posts: 192
Joined: Mon Jul 24, 2017 3:19 pm
Location: Germany

Re: 43S Bug Reports and Maintenance

Post by Thomas_ER »

Walter wrote:
Tue Mar 28, 2023 10:47 pm
Thomas_ER wrote:
Tue Mar 28, 2023 10:25 pm
Running program SPIRAL (pre-populated programs) in Windows Simulator (version WP43 v0.23.10 2023-03-26)
crashes the Simulator.
(Calling this program via CATALOG, PROGS, RAM also crashes the Simulator)
Hmmh, no crash on my custom build of 2023-03-11: RESET, XEQ PROG SPIRAL spiral.png
now with RESET, as suggested:
it's also crashing, hmmm. (calling another program, e.g. "Fact" is fine)
maybe wrong install on my site? something missing?
I'm always un-zipping to a new folder, here "wp43-windows-0.23.10")
[ HP48/49/50/42S/WP34/HP Prime/ DM42 (#00185+00318) ]
User avatar
Walter
Posts: 3070
Joined: Tue May 02, 2017 11:13 am
Location: On a mission close to DRS, Germany

Re: 43S Bug Reports and Maintenance

Post by Walter »

Please see above - post crossing.

EDIT 23:10: Newly built wp43.exe right now, no crash. Mysterious.
Last edited by Walter on Tue Mar 28, 2023 11:12 pm, edited 1 time in total.
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
Thomas_ER
Posts: 192
Joined: Mon Jul 24, 2017 3:19 pm
Location: Germany

Re: 43S Bug Reports and Maintenance

Post by Thomas_ER »

Walter wrote:
Tue Mar 28, 2023 10:47 pm
Thomas_ER wrote:
Tue Mar 28, 2023 10:25 pm
Running program SPIRAL (pre-populated programs) in Windows Simulator (version WP43 v0.23.10 2023-03-26)
crashes the Simulator.
(Calling this program via CATALOG, PROGS, RAM also crashes the Simulator)
Hmmh, no crash on my custom build of 2023-03-11 for the simulator: RESET, XEQ PROG SPIRAL spiral.png

Crash confirmed for v0.23.10 for the simulator, however.
No crash on my custom build of 2023-03-16 for the calculator HW.
Yes, fine on real calculator, (I added this in my above post later).
[ HP48/49/50/42S/WP34/HP Prime/ DM42 (#00185+00318) ]
User avatar
Walter
Posts: 3070
Joined: Tue May 02, 2017 11:13 am
Location: On a mission close to DRS, Germany

Re: 43S Bug Reports and Maintenance

Post by Walter »

As written above, this issue looks a bit mysterious. There's more mystery in SPIRAL. For the time being, I'd pack this on the stack of 'issues which should vanish with next release'.
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
Thomas_ER
Posts: 192
Joined: Mon Jul 24, 2017 3:19 pm
Location: Germany

Re: 43S Bug Reports and Maintenance

Post by Thomas_ER »

Walter wrote:
Tue Mar 28, 2023 11:05 pm
Please see above - post crossing.

EDIT 23:10: Newly built wp43.exe right now, no crash. Mysterious.
transient alpha radiation or solar flare while previous build ;)
edit: many thanks for the cross check!
[ HP48/49/50/42S/WP34/HP Prime/ DM42 (#00185+00318) ]
User avatar
Walter
Posts: 3070
Joined: Tue May 02, 2017 11:13 am
Location: On a mission close to DRS, Germany

Re: 43S Bug Reports and Maintenance

Post by Walter »

Thomas_ER wrote:
Tue Mar 28, 2023 11:18 pm
Walter wrote:
Tue Mar 28, 2023 11:05 pm
Please see above - post crossing.

EDIT 23:10: Newly built wp43.exe right now, no crash. Mysterious.
transient alpha radiation or solar flare while previous build ;)
I can definitly exclude alpha radiation. :geek:
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
Post Reply