From 7175ffd83caf71e0dfb23980d53afa5b5cc1e28e Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Mon, 22 Apr 2024 01:03:15 -0700 Subject: [PATCH] improve format of 2006/monge/index.html Improved markdown table. Ran `bin/readme2index.sh -v 1 2006/monge` to perform the above. --- 2006/monge/README.md | 22 ++++++----------- 2006/monge/index.html | 57 +++++++++++++++++++++++++++++++------------ 2 files changed, 49 insertions(+), 30 deletions(-) diff --git a/2006/monge/README.md b/2006/monge/README.md index 6b3aa8e0c..b33c62442 100644 --- a/2006/monge/README.md +++ b/2006/monge/README.md @@ -149,23 +149,15 @@ as you like (as understood by the C function `isspace()`). Supported operations and functions are: -``` Operation | Description :-------- | :---------- - +,-,*,/ | Arithmetic operations, priority of * , / over +,- is - | respected. - | - <,> | Compares the real parts of two complex numbers (the imaginary part - | is ignored). Any number of conditions is allowed, the iteration - | will just stop as soon as one of them fails. - Abs2 | Calculates the squared norm, i.e.: Abs2(a+b*i) is (a*a+b*b)+0*i. - Re | Extract the real part, i.e.: Re(a+b*i) is a+0*i. - 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(a+b*i) is ln(a*a+b*b)/2 + atan(b/a)*i. -``` + +,-,*,/ | Arithmetic operations, priority of * , / over +,- is respected. + <,> | Compares the real parts of two complex numbers (the imaginary part is ignored). Any number of conditions is allowed, the iteration will just stop as soon as one of them fails. + Abs2 | Calculates the squared norm, i.e.: Abs2(a+b*i) is (a*a+b*b)+0*i. + Re | Extract the real part, i.e.: Re(a+b*i) is a+0*i. + 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(a+b*i) is ln(a*a+b*b)/2 + atan(b/a)*i. Here are a few examples of fractals you can draw: diff --git a/2006/monge/index.html b/2006/monge/index.html index f5874bf50..cab1ba905 100644 --- a/2006/monge/index.html +++ b/2006/monge/index.html @@ -233,21 +233,48 @@ expression must be an assignment ([variable] = [expr]) or a compari < or > ([expr1] < [expr2] or [expr1] > [expr2]), and you can add spaces as you like (as understood by the C function isspace()).

Supported operations and functions are:

-
    Operation | Description
-    :-------- | :----------
-     +,-,*,/    | Arithmetic operations, priority of  * , /  over  +,-  is
-                | respected.
-                |
-     <,>        | Compares the real parts of two complex numbers (the imaginary part
-                | is ignored). Any number of conditions is allowed, the iteration
-                | will just stop as soon as one of them fails.
-     Abs2       | Calculates the squared norm, i.e.: Abs2(a+b*i) is (a*a+b*b)+0*i.
-     Re         | Extract the real part, i.e.: Re(a+b*i) is a+0*i.
-     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(a+b*i) is ln(a*a+b*b)/2 + atan(b/a)*i.
+ ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OperationDescription
+,-,*,/Arithmetic operations, priority of * , / over +,- is respected.
<,>Compares the real parts of two complex numbers (the imaginary part is ignored). Any number of conditions is allowed, the iteration will just stop as soon as one of them fails.
Abs2Calculates the squared norm, i.e.: Abs2(a+bi) is (aa+bb)+0i.
ReExtract the real part, i.e.: Re(a+bi) is a+0i.
ImExtract the imaginary part, i.e.: Im(a+bi) is b+0i.
ExpCalculates the complex exponential, i.e. Exp(a+bi) is e^a(cos(b)+sin(b)*i).
LnCalculates the principal value of the natural logarithm, i.e. Ln(a+bi) is ln(aa+bb)/2 + atan(b/a)i.

Here are a few examples of fractals you can draw: