Here you can find a WPF app with a
click once deployment.
I use Roslyn script engine to turn C# code into function that is being graphed on a canvas.
This is how a common output looks:
For example you can write something like:
x*x
OR
sin(x*PI)
OR something more complex like: