FooPlot: Online graphing calculator and function plotter

by slange on November 10, 2010

How do I draw a piecewise function? on www.fooplot.com

You can enter a piecewise function using the comparison operators <, >, <=, >=, and == which return 1 if the comparison is true and 0 if the comparison is false. For example, (x<0) returns 1 if the statement (x<0) is true and 0 otherwise. To plot the piecewise function y={x, x<0; x^2, x>0} you could enter

(x<0)*x+(x>0)*x^2

via FooPlot: Online graphing calculator and function plotter.

Previous post:

Next post: