An adaptable command-line trig function plotting program, used to plot common trig functions (e.g. sin)
On Linux, run:
$ gcc -o trig trig.c -lm
Example:
$ ./trig -r 1 -d 3 -y 20 -x 3 -f cos
-r
Graph range ( -r < y < r ) Decimal or integer-d
Graph domain in π ( 0 < x < dπ ) Decimal or integer-y
Graph y-unit size in characters Integer-x
Graph x-unit size in characters Integer-f
Function (sin, cos or tan) String
- Make plots outside of range not appear
- Make wavelength, period and translations options
- Fix rounding bugs
Created by Nasser Kessas
PRs accepted, feel free to dive in! Open an issue or submit PRs.
C Trig Grapher follows the Contributor Covenant Code of Conduct.