Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
geometry[line] - define a line
Calling Sequence
line(l, [A, B])
line(l, eqn, n)
Parameters
l
-
the name of the line
A, B
two points
eqn
the algebraic representation of a line, that is, a polynomial or equation
n
(optional) a list of two names representing the names of the horizontal-axis and vertical-axis
Description
In the geometry package, a line means a ``straight line''. It is unlimited in extent, i.e., it may be extended in either direction indefinitely.
A line l can be defined as follows:
from two given points A and B
from its algebraic representation eqn. I.e., eqn is a polynomial or an equation. If the third optional argument is not given, then:
if names are assigned to the two environment variables _EnvHorizontalName and _EnvVerticalName, then these two names will be used as the names of the horizontal-axis and vertical-axis respectively.
otherwise, Maple will prompt the user to input the names of the axes.
To access the information relating to a line l, use the following function calls:
form(l)
returns the form of the geometric object (i.e., line2d if l is a line).
Equation(l)
returns the equation that represents the line l.
HorizontalName(l)
returns the name of the horizontal-axis; or FAIL if the axis is not assigned a name.
VerticalName(l)
returns the name of the vertical-axis; or FAIL if the axis is not assigned a name.
detail(l)
returns a detailed description of the line l.
The command with(geometry,line) allows the use of the abbreviated form of this command.
Examples
define two points and
define the line that passes through and
To assign names to the axes, assign the names to the environment variables _EnvHorizontalName and _EnvVerticalName.
Define a line from its algebraic representation.
See Also
geometry[AreConcurrent], geometry[AreParallel], geometry[ArePerpendicular], geometry[AreTangent], geometry[distance], geometry[FindAngle], geometry[HorizontalName], geometry[intersection], geometry[IsOnLine], geometry[objects], geometry[ParallelLine], geometry[PerpenBisector], geometry[PerpendicularLine], geometry[Polar], geometry[Pole], geometry[projection], geometry[randpoint], geometry[slope], geometry[transformation], geometry[VerticalName]
Download Help Document