From ebf4adbebff4b303cb7c8f663fcc8ebaf2cef97a Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 29 Sep 2023 03:29:49 -0700 Subject: [PATCH] Minor fixes and adjustments to 2000/natori Typo fix and added note about the alternate code earlier in the file to note what it's for (southern hemisphere). Also added questions to ponder for the users of the alternate code in the northern hemisphere. --- 2000/natori/README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/2000/natori/README.md b/2000/natori/README.md index e488a25af..ba9545c41 100644 --- a/2000/natori/README.md +++ b/2000/natori/README.md @@ -1,9 +1,6 @@ # Best Small Program NATORI Shin -Univ. of Tokyo -Rigakubu 7-goukan 311 -Hongou 7-3-1, Bunkyou-ku, Tokyo Japan @@ -20,6 +17,9 @@ make ./natori ``` +NOTE: an alternate version exists for those in the southern hemisphere. See the +Alternate code section below for more details. + ## Try: @@ -31,7 +31,7 @@ echo "Do or do not. There is no try." ### Alternate code: The author noted that those in the southern hemisphere might want to change -`acos(l/2)` into `acos(-l/2)`. +`acos(l/2)` into `acos(-l/2)` which we have done in the alternate version. To run the alternate code that supports the southern hemisphere: @@ -41,6 +41,9 @@ make alt Use `natori.alt` as you would `natori`. +What happens if you run it in the northern hemisphere? Are there any +differences? + ## Judges' remarks: @@ -49,7 +52,7 @@ Can you figure out how it does it? The ANSI-C committee, among their multiple misdeeds, broke perfectly fun C programs by making it intractable for them to declare their -own non-traditional prototype for main(). We have had uglify this +own non-traditional prototype for main(). We have had to uglify this program in order to try and prevent C compilers form failing to compile due to the unusual arg types of the main() function.