Is there a function that will return an equation when I specify two points (2,
3) (-6, 1)?
Is there a function that will return an equation when I specify two points (2,
3) (-6, 1)?
There are a lot of curves, but this gives a line, or more generally a
polynomial of degree n-1, for n points:
load(interpol)$
p: [, ]$
define(f(x), lagrange(p));
wxdraw2d(point_type=filled_circle, point_size=1, points(p),
explicit(f(x), x, -10, 10))$
Log in to post a comment.