Skip to content

limepixl/function-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

function-visualizer

A parser and visualizer for functions, using the Shunting yard algorithm for parsing and SFML for visualization.

Controls

Press "Space" while focused on the main window to enter a function in the console window. Then, press "Enter" to graph that function.

Each function must be entered with each character being spaced out with a single space (' '). For example: sin ( x )

Possible operations

  • Addition (+) and Subtraction (-)
  • Multiplication (*) and Division (/)
  • Power (^) (Example: 2 ^ 3 = 8)
  • Square root (sqrt ( ))
  • Sine (sin ( )) and Cosine (cos ( ))
  • Tangent (tan ( )) and Cotangent (cot ( ))

This project uses simple methods to parse the entered function. Mainly, using the Shunting-yard algorithm to convert the notation into postfix notation.

Graph1 Graph2 Graph3 Graph4

About

Function parser and visualizer built in SFML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages