Basic equation grapher for ChatTriggers
/graph
to open the graphing gui.- Click on a text input on the left-hand side of the screen.
- Type in your equation the only variable that will work is
x
, but you can useMath
class constants (e
,pi
, etc)- e.g.
sin(x)
,x*sqrt(10)
etc work- I have made
ln
relate to the natural log, andlog
relate to log base 10
- I have made
- Also note: non real values will show up as
NaN
- e.g.
- To add more lines, press the green box to the right of the inputs
- To remove a line, press the red box to the right of the inputs
- When you want to graph, press
ENTER
- You can zoom in or out using the scroll wheel
- IMPORTANT
- Due to the way the equation parser works, doing
xcos(x)
will not graph. (It will try to find a function in theMath
class calledxcos
, which doesn't exist)- Doing
x(cos(x))
,cos(x)x
,x*cos(x)
, etc will work
- Doing
- When in doubt, add the multiplication symbol
- Due to the way the equation parser works, doing
If you think you found bugs or additions you want to see added in, you can open a pull request or contact me on Discord (Squagward#5513)
https://www.youtube.com/watch?v=E-_Lc6FrDRw
https://github.com/bylexus/fparse for the original
The module version of it can be found here:
- Allow for holding down keys
- Add zooming according to mouse position, not just according to the origin