Jump to content

User talk:Zeddicus

From Rosetta Code

I am curious who you are and where you live. Can you email me to pachl at chello.com?

--WalterPachl (talk)

I tried to test sin(x). Could it be that pi: procedure should be in numbers.inc?

--WalterPachl (talk)

Solved:>

include constants must be used when using sin(x)

--WalterPachl (talk)

I found another problem: What should IGNORETHIS do?

Rexx   : REXX-ooRexx_5.1.0(MT)_64-bit 6.05 7 Feb 2023
Proces : Runner
Line   : 2963 if \ whole(xx) then say abend
Arg    : xx = ".5"
Signal : Argument outside domain or invalid

Line   : 21 t=sigma(.5)

  3333 *-*     say IgnoreThis
Error 16 running F:\Runner.rex line 3333:  Label not found.
Error 16.1:  Label "IGNORETHIS" not found.

and with Regina:

  3331 +++    say CallTree
    21 +++ t=sigma(.5)
Error 16 running "F:\Runner.rex", line 3331: Label not found
Error 16.1: Label "IGNORETHIS" not found
   133 *-* 'regina' runner parms
       +++ RC=-1073741808 +++

--WalterPachl (talk) 00:55, 2 November 2024 (UTC)

Nice! I see you got my poor man's preprocessor running! Do you like it?

--Zeddicus (talk) 12:18, 2 November 2024 (UTC)

About Include:
Just like with many other languages, leaving out an include ('import', 'uses', ...) leads to errors. Sometimes it's somewhat difficult to find the cause. As an example, say in the program for Cubic primes I do not include Sequences (for procedure Prime). Then you get the somewhat cryptic output

Cubic special primes - Using REXX libraries
REXX-ooRexx_5.0.0(MT)_64-bit 6.05 23 Dec 2022

'INCLUDE' is not recognized as an internal or external command,
operable program or batch file.
'INCLUDE' is not recognized as an internal or external command,
operable program or batch file.

SP Primes(150000) - Prime sequence
     7 *-*   do i = 1 to count;
     9 *-* call Primes t
Error 41 running C:\Rex\Sequences\Primes.rex line 7:  Bad arithmetic conversion.
Error 41.1:  Nonnumeric value ("") used in arithmetic operation.

From the call stack you conclude that 'call Primes' is in error, and thus suspect a library was not included. Sometimes it may be deeply nested: A calls B, B calls C, C calls Sin() and Sin() calls Pi()... so you need to include Constants. Of course you may include all libraries in every program, that's up to you. I prefer (for documentation purposes) only to include the needed libraries.

--Zeddicus (talk) 12:18, 2 November 2024 (UTC)

About expose:
Standard REXX cannot pass stems to procedures. You have to use expose, and this may be annoying, because a low level use of a stem requires exposing it on all higher levels. Above mentioned program for Cubic primes is an example. It calls Primes (getting primes using a sieve), Primes calls Primeest (estimate Nth prime), Primeest calls Ln (natural log), Ln uses stem glob. for memoization. So glob. is exposed in all these procedures. Forgetting one leads to NOVALUE errors.

--Zeddicus (talk) 12:18, 2 November 2024 (UTC)

About IgnoreThis:
I could not find a way to access the 'program call stack' in REXX directly. But if you don't use signal on, then it's displayed. So I used following trick in Abend.inc:

signal on novalue name IgnoreThis
if Pos('Regina',version) > 0 then
   say CallTree
else
   say IgnoreThis
exit

The say clauses trigger condition NOVALUE, trying to transfer to the non-existing label IgnoreThis. So it gives error 16, but I have my call tree! It's a pity such a trick is needed, but as the name says, just ignore the last part of the error output.

--Zeddicus (talk) 12:18, 2 November 2024 (UTC)

Error(s) when running version #2 of the Rexx solution of the "Consecutive primes with ascending or descending differences" task

I'm on MacOS (aarch64, arm64) using MacPorts version of Rexx: rexx --version rexx: REXX-Regina_3.9.6 5.00 29 Apr 2024 (64 bit) The self_extractor is a fresh copy-and-paste, the example code is a fresh copy-and-paste. Error(s) when running version #2 of the Rexx solution of the "Consecutive primes with ascending or descending differences" task.

   30 +++    do i = 2 to prim.0
   20 +++ call Deltas

Error 41 running ./consecutive_primes_with_ascending_or_descending_differences.rex, line 30: Bad arithmetic conversion

The bash script is not formatting nicely, sorry

cat ./test_it.bash

  1. !/bin/bash

mkdir ./temp_rexx_library

cd ./temp_rexx_library

cp ../../../common_rex_library/self_extractor.rex .

/opt/local/bin/rexx ./self_extractor.rex

cd ..

ln -s ./temp_rexx_library/Sequences.inc .

ln -s ./temp_rexx_library/Functions.inc .

./consecutive_primes_with_ascending_or_descending_differences.rex

rm ./*.inc

rm -rf ./temp_rexx_library

--Retired Build Engineer (talk) 07:06, 27 February 2025 (UTC)

I've no knowledge of MacOS, but it looks like you're trying to run the program as downloaded. This cannot work, because it contains 'include' statements that are not supported by Classic REXX. The self-extractor also delivered a program 'run.rex' (a preprocessor) that must be used to resolve the includes. In Windows the invocation would be 'run.rex consecutive_primes_with_ascending_or_descending_differences.rex', providing all source is in the same folder.
--Zeddicus (talk) 10:17, 27 February 2025 (UTC)

See https://rosettacode.org/wiki/Compiler/Simple_file_inclusion_pre_processor#REXX
--Zeddicus (talk) 10:17, 27 February 2025 (UTC)

Thanks for the correction regarding have to execute the 'run.rex' program. I've placed that call into my wrapper script. Now I get:

./run.rex: line 1: /Applications: is a directory

./run.rex: line 2: /Applications: is a directory

./run.rex: line 4: syntax error near unexpected token `<'

So, it looks like this is a Windows-only framework/library (also based on your previous comment). Looks like a great library...

--Retired Build Engineer (talk) 16:57, 27 February 2025 (UTC)

Mmmmmm... The first 4 lines in run.rex are

/* Module Run.rex - Build 22 Feb 2025 */
/* REXX Preprocessor and Executor */

/* Usage: rexx|regina run <your program> <your arguments> */

This is ANSI-standard REXX comments and should be recognized as such by any ANSI compatible REXX interpreter! I see you're using Regina, and the self-extractor DID run. Math.rex uses '--' as comment, this might be the issue. Since both Regina and ooRexx support lines starting with '--', I'll put a new version on RC using this type of comment.
--Zeddicus (talk) 08:53, 28 February 2025 (UTC)
I've put a new version on RC. Would you like to try it again?
--Zeddicus (talk) 09:24, 28 February 2025 (UTC)

Um - it looks like it is trying to run the program as a shell script ? Looking at the "how to run" notes on the Compiler/Simple file inclusion pre-processor page, don't you have to say something like regina run.rex ./consecutive_primes_with_ascending_or_descending_differences.rex ?
--Tigerofdarkness (talk) 20:06, 28 February 2025 (UTC)

Hmmm, I don't know if this output helps or not :-(

I did a copy-and-paste of the newer self_extractor.

I used a subdirectory called "Rex" this time, hoping that would help the path parser.

I tried a variety of commands.

The captured results might not be very readable (*SIGH*)

cd Rex Rex: ls Abend.inc Numbers.inc Comment.txt Polynomial.inc Complex.inc Rational.inc Constants.inc Roots.inc Demo1.rex Run.rex Demo2.rex Sequences.inc Functions.inc Settings.inc Labels.txt cmd_history.txt Math.inc consecutive_primes_with_ascending_or_descending_differences.rex Model1.rex results.txt Modules.txt self_extractor.rex Rex: head ./self_extractor.rex -- Math.rex - Build 28 Feb 2025 -- REXX Modules, snippets, programs and docu extractor

-- Copy and save this self-extractor in any folder. Name it as -- you like. Run it with Regina or ooRexx. It will create a -- bunch of programs and includes. Existing ones will be -- overwritten without warning. Run.rex is the preprocessor -- and Math.inc contains all mathematical modules. You get -- also some documentation: Modules.txt (module list), -- Labels.txt (procedure and routine list) and Comment.txt

/opt/local/bin/rexx ./Run.rex ./consecutive_primes_with_ascending_or_descending_differences.rex

Rexx  : REXX-Regina_3.9.6 5.00 29 Apr 2024 Source  : <redacted>/not_git_master/programming/from_Rosetta_Code/Rexx/Consecutive_Primes_With_Ascending_or_Descending_Differences/version_2a/Rex/Run.rex Program : ./consecutive_primes_with_ascending_or_descending_differences.rex Search  : Error  : Program not found

head ./Run.rex -- Module Run.rex - Build 24 Feb 2025 -- REXX Preprocessor and Executor -- Usage: rexx|regina run <your program> <your arguments>

Main: -- Main program flow -- Trap conditions signal on halt name Abend signal on notready name Abend signal on syntax name Abend Rex: /opt/local/bin/rexx Run.rex ./consecutive_primes_with_ascending_or_descending_differences.rex

Rexx  : REXX-Regina_3.9.6 5.00 29 Apr 2024 Source  : <redacted>/Consecutive_Primes_With_Ascending_or_Descending_Differences/version_2a/Rex/Run.rex Program : ./consecutive_primes_with_ascending_or_descending_differences.rex Search  : Error  : Program not found Rex: /opt/local/bin/rexx Run ./consecutive_primes_with_ascending_or_descending_differences.rex

Rexx  : REXX-Regina_3.9.6 5.00 29 Apr 2024 Source  : <redacted>/Consecutive_Primes_With_Ascending_or_Descending_Differences/version_2a/Rex/Run.rex Program : ./consecutive_primes_with_ascending_or_descending_differences.rex Search  : Error  : Program not found

--Retired Build Engineer (talk) 20:45, 28 February 2025 (UTC)
Well, in edit mode it's readable... This is clearly a 'path' issue. Above lines Search : are blank because my path search is based on Windows and surely doesn't work on other platforms. But run.rex looks first in the 'current directory', so one has always the option to put all the stuff in 1 directory.
I see from
cd Rex
Rex: ls
that the self-extractor generated all needed files, so that's OK.

I'm totally not familiar with MacOS... What does the './' part for your program name mean?
Should Rex: /opt/local/bin/rexx Run consecutive_primes_with_ascending_or_descending_differences.rex work, provided you're in directory
<redacted>/Consecutive_Primes_With_Ascending_or_Descending_Differences/version_2a/Rex?
--Zeddicus (talk) 23:00, 28 February 2025 (UTC)
BTW If you copy captured stuff, use the 'pre' tags, and not the 'code' tags. See above in the page for some examples.
--Zeddicus (talk) 23:04, 28 February 2025 (UTC)

When using Linux, UNIX or MacOS (anything with a "UNIX-like shell"), one can place a "./" in front of a file or directory to mean "right here", in this location.
I created a subdirectory (Rexx).
I copied the self_extractor to that directory.
I extracted the contents of the self_extractor.
I copied the Rexx task code into this directory.
/opt/local/bin/rexx Run consecutive_primes_with_ascending_or_descending_differences.rex does NOT work.

--Retired Build Engineer (talk) 23:16, 28 February 2025 (UTC)
Grrrrr... Found it, I think...

Rex: /opt/local/bin/rexx Run ./consecutive_primes_with_ascending_or_descending_differences

and most likely also

Rex: /opt/local/bin/rexx Run consecutive_primes_with_ascending_or_descending_differences

(so your program name WITHOUT suffix .'rex', it's added by Run.rex)
might work. Let me know if it works. I'll update the package in such a way that specifying a suffix also works, i.e. 'run program.rx or so'.
--Zeddicus (talk) 09:20, 1 March 2025 (UTC)

This works (without the new extractor):

/opt/local/bin/rexx ./Run ./consecutive_primes_with_ascending_or_descending_differences

I had a "shebang" in the RC Task Rexx script which I had to remove.

I will now try the new self_extractor.

--Retired Build Engineer (talk) 18:29, 1 March 2025 (UTC)

After updating the self_extractor I had to add the suffix to the Task code filename.

Looks like it works now. I will try with other Rosetta Code Rexx tasks that I've had trouble with.

--Retired Build Engineer (talk) 18:47, 1 March 2025 (UTC)

Rexx RC Task (version 2): "Find prime numbers of the form n*n*n+2" fails with using the new self_extractor

REXX-Regina_3.9.6(MT) 5.00 29 Apr 2024 Prime numbers of the form n^3+2

 n   n^3+2

sh: ISPRIME: command not found

Rexx  : REXX-Regina_3.9.6(MT) 5.00 29 Apr 2024 Source : <redacted>/version_2/Rexx/Runner.rex Line  : 26 if IsPrime(a) then do Var  : A = "3" Digits : 44 Signal : Runtime error Error  : 34 Logical value not "0" or "1" Reason : Logical value not "0" or "1"

 3512 +++    say IgnoreError16

Error 16 running "<redacted>/version_2/Rexx/Runner.rex", line 3512: Label not found Error 16.1: Label "IGNOREERROR16" not found

--Retired Build Engineer (talk) 20:48, 1 March 2025 (UTC)

Ah... wrong function name in line 26. I've corrected the RC entry. Please try again.
But I see the whole stuff is running now! Congratulations! You're the first for a now-windows platform.

--Zeddicus (talk) 20:45, 1 March 2025 (UTC)


non-windows :-)

Will try again with the refreshed RC Rexx task code.
--Retired Build Engineer (talk) 20:48, 1 March 2025 (UTC)

Works now!

--Retired Build Engineer (talk) 20:54, 1 March 2025 (UTC)

Rate counter task fails with the new self_extractor

sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `$CALC base(pi,16)  ;;;  lowercase   digits 2k   echoOptions'
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `$CALC diffs[ prime(40k, 40.8k) ]  ;;;  GRoup 20'
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `$CALC Collatz(38**8)  ;;;  Horizontal'
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `$CALC sinD(-180, +180, 0.5)  ;;;  Plot  DIGits 5   echoOptions'

Perhaps MacOS (bash shell in this case) doesn't like the $ in filenames? We might need to backslash the $ to turn off the special meaning of $ in UNIX shells.

--Retired Build Engineer (talk) 21:09, 1 March 2025 (UTC)
For this program (not posted by me) you don't need preprocessor run.rex (no include clauses). You may run it standalone such as rexx rate_counter_task.rex. But it requires program $CALC, and I could not find it on RC or elsewhere. So this entry will never run anymore.
--Zeddicus (talk) 22:23, 1 March 2025 (UTC)

Maybe it is now "invisible"; some things have vanished only to see it again after one of the Rosetta Code web site wizards found them somewhere, no longer properly linked or something like that. I thought I saw $CALC some time earlier (perhaps quite some time before you became an active contributor to Rosetta Code).

If the $CALC is really gone then the task needs to be designated as unrunnable, and then replaced with something that does run, or the task needs to be removed completely. (*SAD*)

--Retired Build Engineer (talk) 22:25, 1 March 2025 (UTC)
From several entries on ancient (2005) forums I understand $CALC should be a general purpose program (about 4k lines), made by Gerard, and able to perform about 1500 functions from several areas like math, graphing, stats, formatting and more.
--Zeddicus (talk) 06:28, 2 March 2025 (UTC)

RC Rexx task: "Unprimeable numbers" fails: "line 76: Incomplete DO/SELECT/IF"

With a fresh copy-and-paste of the task source on MacOS:

/unprimeable_numbers.rex", line 76: Incomplete DO/SELECT/IF


--Retired Build Engineer (talk) 22:29, 1 March 2025 (UTC)

This entry is from the late Gerard Schildberger. He has made by far the most REXX entries on RC, you may recognize them on the presence of a comment 'stick a fork in it, we're all done'. As you see in this example, his coding style, indentation, use of variable names and all other stuff is horrible. I'm certainly not willing to find and repair any errors in this mess. However, the majority of Gerard's contributions will run.
--Zeddicus (talk) 22:23, 1 March 2025 (UTC)

Ah, too bad; but I really do understand your stance as for many years I had to reverse-engineer code that was written so poorly that it was totally unreadable. --Retired Build Engineer (talk) 22:21, 1 March 2025 (UTC)
Well, I added my solution to this task. Please try it! For now, I left Gerard's entry (I found that several lines at the end are missing, such as return, causing the syntax message). Compare the two versions and understand why I don't like the older one. Remember, Gerard contributed hundreds of entries on RC and they are all the same bad unreadable code.
--Zeddicus (talk) 11:32, 2 March 2025 (UTC)

Thanks for the new version of "Unprimeable numbers". It fails :-( Do I need to update the self_extractor? How much more information do you need?

Error 64 running "<redacted>/Runner.rex": [Syntax error while parsing]
Error 64.1: [Syntax error at line 2]


--Retired Build Engineer (talk) 19:12, 2 March 2025 (UTC)
Irritating. It should work, the entry very alike the others above. But try the last version (1 Mar 2025) of the self-extractor, if yours is older. If it still fails, please provide here the first 10 and the last 10 lines of the generated Runner.rex.
--Zeddicus (talk) 22:12, 2 March 2025 (UTC)

My current version of the self_extractor:

head -1 Rexx/common_rex_library/self_extractor.rex -- Math.rex - Build 1 Mar 2025

I have extracted the current version of the extractor:

ls -1 [A-Z]*
Abend.inc
Comment.txt
Complex.inc
Constants.inc
Crossref.txt
Demo1.rex
Demo2.rex
Functions.inc
Labels.txt
Math.inc
Model1.rex
Modules.txt
Numbers.inc
Polynomial.inc
Rational.inc
Roots.inc
Run.rex
Sequences.inc
Settings.inc

There is no "Runner.rex". (??!!)

cat -n ./Run.rex | head -10
     1	-- Module Run.rex - Build 1 Mar 2025
     2	-- REXX Preprocessor and Executor
     3	-- Usage: rexx|regina run <your program> <your arguments>
     4
     5	Main:
     6	-- Main program flow
     7	-- Trap conditions
     8	signal on halt name Abend
     9	signal on notready name Abend
    10	signal on syntax name Abend
cat -n ./Run.rex | tail -10
   182	         say 'Signal  :' cc
   183	      if Datatype(rc) = 'NUM' then
   184	         if rc > 0 then
   185	            say 'Error   :' rc Errortext(rc)
   186	      if dd <> '' then
   187	         if dd <> 'SIGINT' then
   188	            say 'Reason  :' dd
   189	   end
   190	end
   191	exit


--Retired Build Engineer (talk) 00:11, 3 March 2025 (UTC)
Runner.rex is not created by the self-extractor but every time when you use it as preprocessor. Then it produces and executes the 'temporary' program Runner.rex, a source with all the expanded modules, often 3k-4k lines. So try Unprimeable numbers again (rexx run ....) and see whether it works. Or Totient function, since that one did work.
After running, the last 10-20 lines in Runner.rex provide a summary of all found and included source code. That's why I asked you to supply the first lines (for the syntax error) and the last lines (for the summary)
--Zeddicus (talk) 08:04, 3 March 2025 (UTC)
This is bizarre :-)
I made a copy of my bash script wrapper to capture the head and tail of Runner.rex; ran that script and it works!
I went back and executed my older bash script wrapper and it works!
Well, I must have made a mistake somewhere the time I reported the failure...
--Retired Build Engineer (talk) 19:06, 3 March 2025 (UTC)

RC Rexx task (version #3): "Totient function"; fails:No data returned from function "WHOLE"

Totient function (Phi) 3 - Build 20240828
Simplified and using REXX libraries
REXX-Regina_3.9.6(MT) 5.00 29 Apr 2024

A: using calls to an optimized Totient()

 N Phi(N) Prime?
----------------
   116 +++          if \ Whole(x) then
    39 +++       p = Totient(i)
    22 +++    call First25A
Error 44 running "<redacted>/Rexx/Runner.rex", line 116: Function did not return data
Error 44.1: No data returned from function "WHOLE"

--Retired Build Engineer (talk) 21:36, 1 March 2025 (UTC)
This is not the latest source from RC. Download the newest and try again.
--Zeddicus (talk) 22:35, 1 March 2025 (UTC)

It works now!

--Retired Build Engineer (talk) 23:49, 1 March 2025 (UTC)

RC Rexx task (version #1): Apéry's constant: failed: FACT: command not found

REXX-Regina_3.9.6(MT) 5.00 29 Apr 2024
Apery's constant = zeta(3) to 100 decimal places
Version 1 Three methods, using formulas

Definition 1.2020564036593442854830714115115999903483212709031775135036540966118572571921400836130084123260473112 (0.021 seconds)
sh: FACT: command not found
    33 +++       y = y + (-1)**(k-1) * Fact(k)**2 / (Fact(2*k)*k**3)
     9 +++    a = Markov()
Error 41 running "<redacted>/Rexx/Runner.rex", line 33: Bad arithmetic conversion

--Retired Build Engineer (talk) 00:13, 2 March 2025 (UTC)
Mmmm... this is a weird one. For me it works. I've did some small changes on the RC entry, would you like to try it again?
Clearly procedure Fact: was not found. The preprocessor works as follows: run <your program> -> <your program> is read -> all Includes expanded -> Runner.rex is written -> Runner.rex is executed. So in case of errors always check Runner.rex to see what's wrong. In this case Runner.rex is about 4k lines, module Functions starts from about line 70 and function Fact: from about line 940.
May I ask you something? How did you became interested in (dinosaur) language REXX? I see you don't have a user page nor talk page.
--Zeddicus (talk) 06:09, 2 March 2025 (UTC)
Unlike Gerard, I limit myself to Classic REXX according to the ANSI standard. That means my programs should run under all implementations following this standard: Regina and ooRexx (all platforms). I don't use extensions, libraries or other goodies. But the file IO makes the preprocessor platform dependent (as we saw regarding the path processing).
--Zeddicus (talk) 06:23, 2 March 2025 (UTC)


It works great now :-)
Hmmm, when I first started looking at Rosetta Code I was interested in the Ada examples. Then I thought it might help my ability to program in general if I picked up some other languages as well. My "lingua franca" was Perl. Then I saw the list of the most "popular" languages on Rosetta Code. Can't do Phix, can't do J, I'm trying nearly everything else that I can find a compiler for on MacOS (arm64), mostly from MacPorts. I have lots of Erlang and Haskell examples "cloned" from Rosetta Code, but I don't understand them at all :-) Perhaps "TigerOfDarkneess" would have asked me the same question about why I was interested in Algol68g just like you are curious about my interest in Rexx. Both near the top of the "popularity" index :-) So I'm in the midst of "cloning" Rosetta Code examples for about 69 languages. I have about a 75% success factor of "copy-and-paste-and-execute" (or with some fiddling). This is perhaps a fools's errand, but I want to grok it all now that I'm old :-) Not ready yet to make a Rosetta Code user page for myself.
--Retired Build Engineer (talk) 07:02, 2 March 2025 (UTC)
69 languages?! Looks like a full time job! Well, I'll stick to REXX. Not because it's high on RC popularity list (due to all Gerard's contributions, on the general world wide popularity list it's not in the top 50 anymore), but because I'm lazy and REXX is dead easy (see my user page).
--Zeddicus (talk) 07:26, 2 March 2025 (UTC)

RC Rexx task: "Non-decimal radices/Convert" fails

RC Rexx task: "Non-decimal radices/Convert" fails

suggestion #1: When the self-extractor is executed, by default have it run silently, but have a debug option.

suggestion #2: Have the self-extractor display its own version date. This can be used to show that, possibly, the self-extractor requires updating when executing a task that generates error(s).

I'm using: -- Math.rex - 10 Mar 2025

NON-DECIMAL RADICES - 11 Mar 2025
REXX-Regina_3.9.6(MT) 5.00 29 Apr 2024
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 2 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 3 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 4 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 5 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 6 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 7 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 8 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 9 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 10 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 11 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 12 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 13 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 14 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 15 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 16 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 17 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 18 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 19 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 20 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 21 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 22 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 23 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 24 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 25 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 26 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 27 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 28 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 29 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 30 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 31 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 32 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 33 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 34 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 35 =  decimal
sh: BASENN: command not found
sh: BASENN: command not found
sh: BASE10: command not found
255 decimal =  base 36 =  decimal


--Retired Build Engineer (talk) 17:08, 12 March 2025 (UTC)
Forgot to update the self-extractor (Non-decimal radices is dated Mar 11 and the extractor Mar 10...). I'll repair it and also follow your recommendations.
--Zeddicus (talk) 07:28, 13 March 2025 (UTC)
Version 13 Mar 2025 is posted. Please try again!
--Zeddicus (talk) 11:11, 13 March 2025 (UTC)


The new self-extractor works great! Thanks for the enhancements!
--Retired Build Engineer (talk) 18:31, 13 March 2025 (UTC)

The new version of the Rexx Mertens function example (partially) fails for me

Hi;

The new version of the Rexx Mertens function example (partially) fails for me.

I think that the self-extractor is up-to-date...

I also have a question about specifying values or parameters prompted by your last comment prior to the output...

MATH SELF-EXTRACTOR - 23 Apr 2025

MERTENS FUNCTION
REXX-Regina_3.9.6(MT) 5.00 29 Apr 2024

Tasks using Sieve...
M1 thru M99
  1  0 -1 -1 -2 -1 -2 -2 -2 -1
 -2 -2 -3 -2 -1 -1 -2 -2 -3 -3
 -2 -1 -2 -2 -2 -1 -1 -1 -2 -3
 -4 -4 -3 -2 -1 -1 -2 -1  0  0
 -1 -2 -3 -3 -3 -2 -3 -3 -3 -3
 -2 -2 -3 -3 -2 -2 -1  0 -1 -1
 -2 -1 -1 -1  0 -1 -2 -2 -1 -2
 -3 -3 -4 -3 -3 -3 -2 -3 -4 -4
 -4 -3 -4 -4 -3 -2 -1 -1 -2 -2
 -1 -1  0  1  2  2  1  1  1
M1 thru M99 equals zero 6 times
M1 thru M99 crosses zero 5 times
0.001 seconds

Tasks using Moebius function...
M1 thru M99

Rexx   : REXX-Regina_3.9.6(MT) 5.00 29 Apr 2024
Source : <sanitized_path>/Rexx/Runner.rex
Line   : 2327 if xx < 2 then say argument
Arg    : XX = "1"
Digits : 9
Signal : Argument outside domain, invalid or missing

  5294 +++             say IgnoreError16
   896 +++          call Factors(xx)
    82 +++       s = s+Moebius(i)
    31 +++    call Tasks2 xx
Error 16 running "<sanitized_path>/Rexx/Runner.rex", line 5294: Label not found
Error 16.1: Label "IGNOREERROR16" not found


--Retired Build Engineer (talk) 19:00, 29 April 2025 (UTC)

Mertens function was also updated on RC:

-- 25 Apr 2025
include Settings
arg xx
if xx = '' then
   xx = 99

say 'MERTENS FUNCTION'

The argument is the second Mxxx to use. The first is always M1. So 'regina run mertens 123' will process M1 thru M123.
--Zeddicus (talk) 08:15, 30 April 2025 (UTC)

Cookies help us deliver our services. By using our services, you agree to our use of cookies.