Student[MultivariateCalculus] - Maple Programming Help

Home : Support : Online Help : Education : Student Packages : Multivariate Calculus : Lines and Planes : Student/MultivariateCalculus/AreSkew

Student[MultivariateCalculus]

 AreSkew
 determine if two lines are skew

 Calling Sequence AreSkew(l1, l2)

Parameters

 l1, l2 - Line ; Line defined in Student[MultivariateCalculus]

Description

 • The AreSkew command determines if two Line objects are skew.
 • Lines are skew if they do not intersect and are not parallel to each other. Since lines in 2D space always either intersect or are parallel, this command always returns false for lines in 2D space.

Examples

 > with(Student[MultivariateCalculus]):
 > l1 := Line([3, 2, 6], <-2, 5, 1>):
 > l2 := Line([5, 7, 3], <4, 2, 2>):
 > AreSkew(l1, l2);
 ${\mathrm{true}}$ (1)
 > Intersects(l1, l2);
 ${\mathrm{false}}$ (2)
 > AreParallel(l1, l2);
 ${\mathrm{false}}$ (3)

Graphing two skew lines.

 > p1 := GetPlot( Line([3, 2, 6], <-2, 5, 1>), 'caption' = "", 'showvector' = false, 'showpoint' = false, 'lineoptions' = ['color' = "red"]):
 > p2 := GetPlot( Line([5, 7, 3], <4, 2, 2>), 'caption' = "", 'showvector' = false, 'showpoint' = false, 'lineoptions' = ['color' = "green"]):
 > plots[display]([p1,p2], 'caption'="Two skew lines");
 > l3 := Line([0,1,0], <6,9,-3>):
 > l4 := Line([1,4,0], <-2,-3,1>):
 > AreSkew(l3, l4);
 ${\mathrm{false}}$ (4)
 > Intersects(l3, l4);
 ${\mathrm{false}}$ (5)
 > AreParallel(l3, l4);
 ${\mathrm{true}}$ (6)

Graphing two parallel lines.

 > p3 := GetPlot( Line([0,1,0], <6,9,-3>), 'caption' = "", 'showvector' = false, 'showpoint' = false, 'lineoptions' = ['color' = "red"]):
 > p4 := GetPlot( Line([1,4,0], <-2,-3,1>), 'caption' = "", 'showvector' = false, 'showpoint' = false, 'lineoptions' = ['color' = "green"]):
 > plots[display]([p3,p4], 'caption'="Two parallel lines");

Compatibility

 • The Student[MultivariateCalculus][AreSkew] command was introduced in Maple 17.