Skip to content

A trigonometry function plotter that runs in a terminal.

Notifications You must be signed in to change notification settings

nasserkessas/c-trig-grapher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Trigonometry Functions Console Grapher

Overview

An adaptable command-line trig function plotting program, used to plot common trig functions (e.g. sin)

C-trig-grapher

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.

About

A trigonometry function plotter that runs in a terminal.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages