Equation of a straight line
esli , p1(#y1 #x1) p2(#y2 #x2)
Description
esli provides the equation of the straight line passing through two specified points.
Options
p1(#y1 #x1) specifies the coordinates of the first point.
p2(#y2 #x2) specifies the coordinates of the second point.
Examples
. esli, p1(3 760) p2(6 5724) . esli, p1(3 573) p2(6 4944) . tw function `r(equation)' . tw function `r(equation)', range(0 6000)
Author
Nicola Orsini, Division of Nutritional Epidemiology, IMM, Karolinska Institutet, Sweden Support
http://nicolaorsini.altervista.org