Nice one. (BTW My version was not "optimised": it worked and that was
enough.)
Your NUMERIC DIGITS 8 *might* not be sufficient for your "finite
difference equation to generate table of sines". I used the much slower
Taylor series for calculating sines, for which NUMERIC DIGITS 100 worked
"OK" - but without checking whether this could be reduced to 10 or 8.
Cheers.
On 25/04/2020 21:51, Paul Gilmartin wrote:
> On 2020-04-25, at 08:38:08, Joel C. Ewing wrote:
> >
> > Always curious about compatibility issues, copied program and pasted
> > into gedit on Fedora Linux, put a leading
> > "#!/usr/bin/rexx" and tried to run with oorexx on linux. Only code
> > issues found:
> > (1)Not really a code issue, but had to to run through dos2unix to
> > convert Windows CR LF end-of-line to unix LF end of line or don't even
> > get past the unix shebang 1st line -- can't find program "rexx" with CR
> > appended to name.
> > (2)Only special characters allowed in variable names in oorexx are !, ?,
> > and _, so "#DAYS" is not a valid variable name and produced an error
> > message about unexpected "#". Find-replace-all "#DAYS" to "NR_DAYS"
> >
> > That's all it took to get it to run.
> >
> I did not copy-and-paste; I downloaded the attachment,
> which appears to be UTF-8.
>
> For Regina, Regina.pdf says: 3.1.1.1 Negators
> ... Regina supports the following characters as negators:
> ...
> ¬ Logical Not
> Copy-and-paste from the pdf gives me:
> 931 $ printf ¬ | od -tx1
> 0000000 c2 ac
> ... the UTF-8 "¬". But when I paste it into an EXEC, Regina says:
> say 2+2 ¬= 4
> Error 13 running "/Users/paulgilm/bin/rxx", line 2: Invalid character
> in program
> Error 13.1: Invalid character in program "('c2'X)"
>
> I much prefer when the examples in the Ref. actually work. Does
> ooRexx accept UTF-8 "¬"?
>
> I went on and did something fancy. Attached.
>
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>
>
> -- gil
>
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN