https://github.com/chrisru/svg-function-graph
📈 Plot Formulas in SVG
https://github.com/chrisru/svg-function-graph
Last synced: about 1 year ago
JSON representation
📈 Plot Formulas in SVG
- Host: GitHub
- URL: https://github.com/chrisru/svg-function-graph
- Owner: ChrisRu
- Created: 2020-06-27T09:25:57.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-05T11:04:18.000Z (almost 6 years ago)
- Last Synced: 2025-01-25T15:30:10.949Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Make SVG Graph from formulas
## Building
Requires make and gcc to be installed. In the root folder, run:
`make`
## Running without generating SVG file
`./svggraph`
## Running with SVG file
Replace W, H, X, Y with numbers.
`./svgraph output.svg W H X Y`
## Supported functions
Replace a, b, c with numbers.
- `y = a x`
- `y = x + a`
- `y = x - a`
- `y = sin a`
- `y = cos a`
- `y = tg a` or `y = tan a`
- `y = a x2 + b x + c`