public double getY(string Expression, double x) { double y; parser.changeVariable("x", x); y = parser.Parse(Expression); PointF point = new PointF(); point.X = (float)x; point.Y = (float)y; return(y); }