Trigonometry Functions Console Grapher
Overview
An adaptable command-line trig function plotting program, used to plot common trig functions (e.g. sin)
Usage
Build
On Linux, run:
$ gcc -o trig trig.c -lm
Run
Example:
$ ./trig -r 1 -d 3 -y 20 -x 3 -f cos
Options
-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
Todo
- Make plots outside of range not appear
- Make wavelength, period and translations options
- Fix rounding bugs
Acknoledgements
Created by Nasser Kessas
Contributing
PRs accepted, feel free to dive in! Open an issue or submit PRs.
C Trig Grapher follows the Contributor Covenant Code of Conduct.