fix Makefile and README.md for 2004/hoyle

This commit is contained in:
Landon Curt Noll committed 2023-03-21 21:03:53 -07:00
1 parent 82376d4fc4
commit 107dda6c85
2 files changed
+19 -7

No files matched your search

+1 -1
View File
@@ -101,7 +101,7 @@ CINCLUDE=
#CINCLUDE= -include stdlib.h #CINCLUDE= -include stdlib.h
#CINCLUDE= -include stdio.h #CINCLUDE= -include stdio.h
#CINCLUDE= -include stdlib.h -include stdio.h #CINCLUDE= -include stdlib.h -include stdio.h
#CINCLUDE= -I ${X11_INCDIR} #CINCLUDE= -I ${X11_INCDIR} -I ${X11_INCDIR}/X11
#CINCLUDE= `${SDL2_CONFIG} --cflags` #CINCLUDE= `${SDL2_CONFIG} --cflags`
# Optimization # Optimization
+18 -6
View File
@@ -7,19 +7,25 @@
http://www.jonhoyle.com http://www.jonhoyle.com
## To build: # To build:
make all ```sh
make
```
### To run ### To run:
```sh
./hoyle point ... ./hoyle point ...
```
### Try: ### Try:
```sh
./hoyle 10 0.5 ./hoyle 10 0.5
./hoyle 1 1 1 1 ./hoyle 1 1 1 1
./hoyle 2 0 1 0 -0.001 ./hoyle 2 0 1 0 -0.001
```
### Alternate code ### Alternate code
@@ -28,9 +34,11 @@ missing newline and used a non-standard tab stop size.
To compile this alternate version: To compile this alternate version:
```sh
make alt make alt
```
Use `hoyle.alt.c` as you would `prog` above. Use `hoyle.alt.c` as you would `hoyle` above.
## Judges' comments ## Judges' comments
@@ -47,19 +55,23 @@ Use `hoyle.alt.c` as you would `prog` above.
It allows up to 8 parameters (thus up to x^7). It allows up to 8 parameters (thus up to x^7).
Points of note: Points of note:
- the x axis goes from -32 to +31 - the x axis goes from -32 to +31
- the y axis auto scales! - the y axis auto scales!
- up to 8 coefficients may be passed in - up to 8 coefficients 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.
Example: For example, ta graph y = x^2:
To graph y = x^2
```sh
./hoyle 0 0 1 ./hoyle 0 0 1
```
Note that: Note that:
```sh
./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.