43S News

General discussion about calculators, SwissMicros or otherwise
dlachieze
Posts: 398
Joined: Thu May 04, 2017 12:20 pm
Location: France

Re: 43S News

Post by dlachieze »

H2X wrote:
Thu Jan 13, 2022 1:59 pm
And if I am not mistaken, this is also exactly how it would appear in any other code or text editor with line numbers enabled. Correct, dlachieze?
Yes.

Here is an issue with ROUNDI : this instruction applies currently only to reals, not to integer. This is an issue because it means that when the user has to enter data in a program including the ROUNDI instruction he has also to specifically enter numbers with a decimal separator. Otherwise there could be an error message "Invalid input type for this operation" if ROUNDI is applied to the result of a calculation that happens to be integer.

For example, let's look at the simple program below just for illustration:

Code: Select all

001 LBL 'TST'
002 RCL+X
003 SQRT 
004 ROUNDI
005 END
If you enter 1 XEQ 'TST' it will return correctly 1.
If you enter 3 XEQ 'TST' it will return correctly 2.
But if you enter 2 XEQ 'TST' you'll get an "Invalid input type for this operation" error message because 2+2=4 and the square root of 4 is 2 which is considered as an integer to which ROUNDI cannot be applied.
The only way to get a result for 2 is to enter 2. XEQ 'TST' so SQRT(2.+2.) will return 2. which is a valid type for ROUNDI.

For consistency and ease of use ROUNDI should not return an error when applied to integers (same as IP which works correctly with integers).
DM42: 00425 - DM41X: β00066
User avatar
Walter
Posts: 2211
Joined: Tue May 02, 2017 11:13 am
Location: Close to FRA, Germany

Re: 43S News

Post by Walter »

dlachieze wrote:
Thu Jan 13, 2022 6:32 pm
... just for illustration:

Code: Select all

001 LBL 'TST'
002 RCL+X
003 SQRT 
004 ->REAL   @This step was inserted by me
005 ROUNDI
006 END
My step 004 solves your problem as well.
DM42 SN: 00041 β
WP 43S running on this device

HP-35, HP-45, ..., HP-35S; WP 34S & WP 31S for obvious reasons; DM16L
dlachieze
Posts: 398
Joined: Thu May 04, 2017 12:20 pm
Location: France

Re: 43S News

Post by dlachieze »

Well, this is a workaround but if you have to systematically add ->REAL before ROUNDI to avoid unneeded error messages, my take is that it should be part of the ROUNDI instruction itself.

Why would 2 ROUNDI return an error message and not 2 IP ?
DM42: 00425 - DM41X: β00066
User avatar
Over_score
Posts: 130
Joined: Fri May 05, 2017 9:37 pm
Location: France

Re: 43S News

Post by Over_score »

dlachieze wrote:
Thu Jan 13, 2022 7:33 pm
Why would 2 ROUNDI return an error message and not 2 IP ?
1+
DM42 SN00284 running free42 & SN03835 running WP43S, DM15L, HP41CV, HP42S, HP35s, WP34S, HP Prime
User avatar
akaTB
Posts: 675
Joined: Tue May 02, 2017 1:56 pm
Location: Milan, Italy

Re: 43S News

Post by akaTB »

dlachieze wrote:
Thu Jan 13, 2022 7:33 pm
Why would 2 ROUNDI return an error message and not 2 IP ?
The answer is to modify IP so it issues an error too.

SCNR :mrgreen:
Greetings,
    Massimo
ajcaton
-+×÷ left is right and right is wrong :twisted: Casted in gold
User avatar
Walter
Posts: 2211
Joined: Tue May 02, 2017 11:13 am
Location: Close to FRA, Germany

Re: 43S News

Post by Walter »

Release 0.21.8 is here https://gitlab.com/Over_score/wp43s/-/releases. Santa Claus has come again (very early):
  1. Program editing is refined following user request.
  2. ROUNDI digests also integers now without throwing an error.
  3. Improvements of the Solver were implemented.
  4. Handling of local registers was improved.
  5. SHUFFLE (a.k.a. <>) can be inserted in a program now.
  6. Further refinements in program entry.
For this release, no updated manuals were uploaded.

Included in the release package is everything you may want to try, test, and check the 43S on your computer or your DM42. Please look into the Reference Manual, App. E and F for how to do this.

Enjoy!

If you have any questions, don't hesitate to ask early. And if you discover anything suboptimal unknown yet, please report. There are certainly some issues - who finds one will get 12 test points.
DM42 SN: 00041 β
WP 43S running on this device

HP-35, HP-45, ..., HP-35S; WP 34S & WP 31S for obvious reasons; DM16L
dlachieze
Posts: 398
Joined: Thu May 04, 2017 12:20 pm
Location: France

Re: 43S News

Post by dlachieze »

Walter wrote:
Fri Jan 14, 2022 10:45 am
Release 0.21.8 is here https://gitlab.com/Over_score/wp43s/-/releases. Santa Claus has come again (very early):
Cool, this is a quick bug fix turn around time :)
I will check it in details.

In the mean time here is an issue I found with 0.21.7 and confirmed with 0.21.8: RCL operations with L are using the future value of L instead of the current one.
For example 5 x^2 RCL+ L returns 50 instead of 30 .
DM42: 00425 - DM41X: β00066
User avatar
Walter
Posts: 2211
Joined: Tue May 02, 2017 11:13 am
Location: Close to FRA, Germany

Re: 43S News

Post by Walter »

This is a cute one! :) 12 more points for you (you may need an account, don't you?).

As written in the foreword, we strive for short maintenance times. ;)

(EDIT 15:56: Repaired. Will be available with next release.)
DM42 SN: 00041 β
WP 43S running on this device

HP-35, HP-45, ..., HP-35S; WP 34S & WP 31S for obvious reasons; DM16L
toml_12953
Posts: 745
Joined: Wed May 03, 2017 7:46 pm
Location: Malone, NY USA

Re: 43S News

Post by toml_12953 »

dlachieze wrote:
Fri Jan 14, 2022 1:10 pm
Walter wrote:
Fri Jan 14, 2022 10:45 am
Release 0.21.8 is here https://gitlab.com/Over_score/wp43s/-/releases. Santa Claus has come again (very early):
Cool, this is a quick bug fix turn around time :)
I will check it in details.

In the mean time here is an issue I found with 0.21.7 and confirmed with 0.21.8: RCL operations with L are using the future value of L instead of the current one.
For example 5 x^2 RCL+ L returns 50 instead of 30 .
I was able to run 0.21.7 with no problem but when I try to run 0.21.8 on Win 11, the black window opens with a message about the code page, then a white calculator-sized window opens then both close with no error messages.
Tom L

Some people call me inept but I'm as ept as anybody!
DM10L SN: 059/100
DM41X SN: 00023 (Beta)
DM41X SN: 00506 (Shipping)
DM42 SN: 00025 (Beta)
DM42 SN: 00221 (Shipping)
User avatar
Walter
Posts: 2211
Joined: Tue May 02, 2017 11:13 am
Location: Close to FRA, Germany

Re: 43S News

Post by Walter »

toml_12953 wrote:
Fri Jan 14, 2022 4:36 pm
I was able to run 0.21.7 with no problem but when I try to run 0.21.8 on Win 11, the black window opens with a message about the code page, then a white calculator-sized window opens then both close with no error messages.
Sorry, I work with Windows 10. We feel sympathetic to you but:
Never change a solid OS unless inevitable (fundamental law #1 of computing). 8-)
DM42 SN: 00041 β
WP 43S running on this device

HP-35, HP-45, ..., HP-35S; WP 34S & WP 31S for obvious reasons; DM16L
Post Reply