From ed383df280af660edb67db42d84801fbecc50e78 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 22 Nov 2023 10:18:04 -0800 Subject: [PATCH] Update 2006/monge bugs status There was an inconsistency between the README.md and the bugs.md file that has been fixed. As well the program requires one be able to read, write and execute memory. This is not allowed in macOS with the silicon chip so I have added the status of it not working with some platforms. A few minor formatting fixes were made in the README.md file but I didn't go through the file so it can't be considered done. --- 2006/monge/README.md | 12 ++++++++---- bugs.md | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/2006/monge/README.md b/2006/monge/README.md index b722d8d31..b1616c263 100644 --- a/2006/monge/README.md +++ b/2006/monge/README.md @@ -12,7 +12,8 @@ make The current status of this entry is: ``` -STATUS: known bug - please help us fix +STATUS: doesn't work with some platforms - please help us fix +STATUS: INABIAF - please **DO NOT** fix ``` For more detailed information see [2006 monge in bugs.md](/bugs.md#2006-monge). @@ -63,11 +64,13 @@ effort to work on both `i386` and `x86_64`. Portable it is! :) 0. Compile using the Makefile, or just run: - gcc monge.c -o monge -O3 `sdl-config --libs --cflags` +```sh +gcc monge.c -o monge -O3 `sdl-config --libs --cflags` +``` 1. Run: -``` +```sh ./monge "z = 0" "z = z*z + c; Abs2(z) < 4" ``` @@ -113,7 +116,7 @@ Operation | Description `Im` | Extract the imaginary part, i.e.: `Im(a+b*i) is b+0*i`. `Exp` | Calculates the complex exponential, i.e. `Exp(a+b*i)` is | `e^a*(cos(b)+sin(b)*i)` -Ln | Calculates the principal value of the natural logarithm, i.e. +`Ln` | Calculates the principal value of the natural logarithm, i.e. `Ln(a+b*i)` is `ln(a*a+b*b)/2` + `atan(b/a)*i` Here are a few examples of fractals you can draw: @@ -175,6 +178,7 @@ If you want you can change the window width and height, or the default number of iterations (that one can be tweaked at runtime, anyway) by changing the definitions of `W`, `H` and `I` at the beginning of the code. + ### Caveats (I just a selected few of them!) - The zooming speed depends on the speed of the computer. diff --git a/bugs.md b/bugs.md index fcacb2039..ac1797aba 100644 --- a/bugs.md +++ b/bugs.md @@ -2307,14 +2307,18 @@ used decimal mode, or any of the "undocumented" instructions. ## 2006 monge -### STATUS: known bug - please help us fix +### STATUS: doesn't work with some platforms - please help us fix ### Source code: [2006/monge/monge.c](2006/monge/monge.c) ### Information: [2006/monge/README.md](2006/monge/README.md) -Incorrect formulas will ungracefully crash the program. +This program requires being able to read, write and execute memory. With the +Apple silicon chips this is not allowed. Fixing this might be quite challenging +but you are welcome to try and fix it. -Fixing the (Mis)feature is likely to be a difficult challenge. -You are welcome to try and fix it if you can! + +### STATUS: INABIAF - please **DO NOT** fix + +Incorrect formulas will ungracefully crash the program. ## 2006 toledo2