Format fix 2004/hoyle/README.md

This commit is contained in:
Cody Boone Ferguson committed 2023-04-25 05:07:38 -07:00
1 parent b9363b039b
commit 60e9d4210f
1 file changed
+17 -20
+17 -20
View File
@@ -1,11 +1,8 @@
# Most Functional Output # Most Functional Output
Jonathan Hoyle Jonathan Hoyle
162 Burwyck Park
Saline, MI 48176
US US
<http://www.jonhoyle.com>
http://www.jonhoyle.com
## To build: ## To build:
@@ -29,8 +26,8 @@ make
### Alternate code ### Alternate code
An alternate version of this entry, `hoyle.alt.c`, is provided. This alternate code An alternate version of this entry, [hoyle.alt.c](hoyle.alt.c), is provided.
has a missing newline and used a non-standard tab stop size. This alternate code has a missing newline and used a non-standard tab stop size.
To compile this alternate version: To compile this alternate version:
@@ -40,29 +37,29 @@ make alt
Use `hoyle.alt.c` as you would `hoyle` above. Use `hoyle.alt.c` as you would `hoyle` above.
## Judges' remarks ## Judges' remarks:
This obfuscation functions at several levels. Note the clever This obfuscation functions at several levels. Note the clever
use of use of #defines. The do(if,else) #define, for example, use of use of `#define`s. The `#define do(if,else)`, for example,
is delightful. The code itself contains a bunch of curves is delightful. The code itself contains a bunch of curves
designed to throw you off axis. :-) designed to throw you off axis. :-)
## Author's remarks ## Author's remarks:
This application graphs polynomials on a standard Cartesian coordinate This application graphs polynomials on a standard Cartesian coordinate system.
system. Polynomials of the form ax^0 + bx^1 + cx^2 + ... are graphed by Polynomials of the form `ax^0 + bx^1 + cx^2 +` ... are graphed by passing the
passing the coefficients a, b, c, etc. as double precision arguments. coefficients `a`, `b`, `c`, etc. as double precision arguments. It allows up to
It allows up to 8 parameters (thus up to x^7). 8 parameters (thus up to `x^7`).
Points of note: ### Points of note:
- the x axis goes from -32 to +31 - the [x axis](https://mathworld.wolfram.com/x-Axis.html) goes from `-32` to `+31`
- the y axis auto scales! - the [y axis](https://mathworld.wolfram.com/y-Axis.html) auto scales!
- up to 8 coefficients may be passed in - up to 8 [coefficients](https://en.wikipedia.org/wiki/Coefficient) may be passed in
- the graph will determine direction and use slashes and - the graph will determine direction and use slashes and
dashes rather than simple block X's. dashes rather than simple block `X`s.
For example, ta graph y = x^2: For example, ta graph `y = x^2`:
```sh ```sh
./hoyle 0 0 1 ./hoyle 0 0 1
@@ -74,7 +71,7 @@ Note that:
./hoyle 0 0 2 ./hoyle 0 0 2
``` ```
will produce the same graph, since the y-axis is auto scaling. will produce the same graph, since the `y-axis` is auto scaling.
## Copyright and CC BY-SA 4.0 License: ## Copyright and CC BY-SA 4.0 License: