improve format of 2006/monge/index.html

Improved markdown table.

Ran `bin/readme2index.sh -v 1 2006/monge` to perform the above.
This commit is contained in:
Landon Curt Noll committed 2024-04-22 01:03:15 -07:00
1 parent 74bbe95fd8
commit 7175ffd83c
2 files changed
+49 -30

No files matched your search

+7 -15
View File
@@ -149,23 +149,15 @@ as you like (as understood by the C function `isspace()`).
Supported operations and functions are: Supported operations and functions are:
```
Operation | Description Operation | Description
:-------- | :---------- :-------- | :----------
+,-,*,/ | Arithmetic operations, priority of * , / over +,- is +,-,*,/ | Arithmetic operations, priority of * , / over +,- is respected.
| 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.
<,> | Compares the real parts of two complex numbers (the imaginary part Re | Extract the real part, i.e.: Re(a+b*i) is a+0*i.
| is ignored). Any number of conditions is allowed, the iteration Im | Extract the imaginary part, i.e.: Im(a+b*i) is b+0*i.
| will just stop as soon as one of them fails. Exp | Calculates the complex exponential, i.e. Exp(a+b*i) is e^a*(cos(b)+sin(b)*i).
Abs2 | Calculates the squared norm, i.e.: Abs2(a+b*i) is (a*a+b*b)+0*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.
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: Here are a few examples of fractals you can draw:
+42 -15
View File
@@ -233,21 +233,48 @@ expression must be an assignment (<code>[variable] = [expr]</code>) or a compari
<code>&lt;</code> or <code>&gt;</code> (<code>[expr1] &lt; [expr2]</code> or <code>[expr1] &gt; [expr2]</code>), and you can add spaces <code>&lt;</code> or <code>&gt;</code> (<code>[expr1] &lt; [expr2]</code> or <code>[expr1] &gt; [expr2]</code>), and you can add spaces
as you like (as understood by the C function <code>isspace()</code>).</p> as you like (as understood by the C function <code>isspace()</code>).</p>
<p>Supported operations and functions are:</p> <p>Supported operations and functions are:</p>
<pre><code> Operation | Description <table>
:-------- | :---------- <colgroup>
+,-,*,/ | Arithmetic operations, priority of * , / over +,- is <col style="width: 45%" />
| respected. <col style="width: 55%" />
| </colgroup>
&lt;,&gt; | Compares the real parts of two complex numbers (the imaginary part <thead>
| is ignored). Any number of conditions is allowed, the iteration <tr class="header">
| will just stop as soon as one of them fails. <th style="text-align: left;">Operation</th>
Abs2 | Calculates the squared norm, i.e.: Abs2(a+b*i) is (a*a+b*b)+0*i. <th style="text-align: left;">Description</th>
Re | Extract the real part, i.e.: Re(a+b*i) is a+0*i. </tr>
Im | Extract the imaginary part, i.e.: Im(a+b*i) is b+0*i. </thead>
Exp | Calculates the complex exponential, i.e. Exp(a+b*i) is <tbody>
| e^a*(cos(b)+sin(b)*i). <tr class="odd">
Ln | Calculates the principal value of the natural logarithm, i.e. <td style="text-align: left;">+,-,*,/</td>
Ln(a+b*i) is ln(a*a+b*b)/2 + atan(b/a)*i.</code></pre> <td style="text-align: left;">Arithmetic operations, priority of * , / over +,- is respected.</td>
</tr>
<tr class="even">
<td style="text-align: left;">&lt;,&gt;</td>
<td style="text-align: left;">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.</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Abs2</td>
<td style="text-align: left;">Calculates the squared norm, i.e.: Abs2(a+b<em>i) is (a</em>a+b<em>b)+0</em>i.</td>
</tr>
<tr class="even">
<td style="text-align: left;">Re</td>
<td style="text-align: left;">Extract the real part, i.e.: Re(a+b<em>i) is a+0</em>i.</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Im</td>
<td style="text-align: left;">Extract the imaginary part, i.e.: Im(a+b<em>i) is b+0</em>i.</td>
</tr>
<tr class="even">
<td style="text-align: left;">Exp</td>
<td style="text-align: left;">Calculates the complex exponential, i.e. Exp(a+b<em>i) is e^a</em>(cos(b)+sin(b)*i).</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Ln</td>
<td style="text-align: left;">Calculates the principal value of the natural logarithm, i.e. Ln(a+b<em>i) is ln(a</em>a+b<em>b)/2 + atan(b/a)</em>i.</td>
</tr>
</tbody>
</table>
<p>Here are a few examples of fractals you can draw:</p> <p>Here are a few examples of fractals you can draw:</p>
<ul> <ul>
<li>Mandelbrot:</li> <li>Mandelbrot:</li>