using Dew.Math;
using Dew.Math.Units;
using Dew.Math.Tee;
namespace Dew.Examples
{
private void Example()
{
Vector X =
new Vector(0);
Vector Y =
new Vector(0);
Vector Coeff =
new Vector(0);
X.Size(10);
X.Ramp(-5,1);
// X = [-5,-4,-3,-2,-1, 0, 1, 2, 3, 4]
// construct a parabola
Coeff.SetIt(
false,
new double[] {2, -1, 3});
Polynoms.PolyEval(X,Coeff,Y);
// Y now holds the values of polynomial, evaluated at all X.Values
MtxVecTee.DrawIt(X,Y,"Parabola",
false);
}
}