コード例 #1
0
        public static List <DoublePoint> GetPointsList(Rpn rpn, double xStart, double xEnd, double step, double zoom)
        {
            var output = new List <DoublePoint>();

            Rpn    localRpn;
            double x = xStart;

            do
            {
                double y = rpn.GetNewRpnWithSetVariable(x * zoom).Calculate() / zoom;

                output.Add(new DoublePoint(x, y));

                x += step;
            } while (x <= xEnd);

            return(output);
        }
コード例 #2
0
 static double GetY(Rpn rpn, double x)
 {
     return(rpn.GetNewRpnWithSetVariable(x).Calculate());
 }