SlideShare a Scribd company logo
Line in Two Dimensional Plane:
The equation of a line in standard form is ax + by = c, wherein both a and b cannot be zero, and
a,b, and care real numbers. Ifb ≠ 0, then –a/b is the slope of the line. Ifa = 0, then it is a horizontal
line, and if b = 0, then it is a vertical line. The slope of a vertical line is undefined. Two lines are
parallelif they have the same slopeor both are vertical lines.Two lines are perpendicular ifeither
one of the lines is horizontal and the other is vertical or the product of their slopes is –1. Design
the class LineType to store a line. To store a line, you need to store the values of a (coefficient of
x), b (coefficient of y), and c. Your class must contain the following operations:
a. If a line is non-vertical, then determine its slope.
b. Determine if two lines are equal. (Two lines a1x + b1y = c1 and a2x + b2y = c2 are equal if
either a1 = a2, b1= b2, and c1 = c2 or a1= k a2, b1= k b2, and c1= k c2 for some real number
k.)
c. Determine if two lines are parallel.
d. Determine if two lines are perpendicular.
e. If two lines are not parallel, then find the point of intersection.

More Related Content

What's hot

9.2 graphing simple rational functions
9.2 graphing simple rational functions9.2 graphing simple rational functions
9.2 graphing simple rational functions
hisema01
 
Lecture 4 chapter 1 review section 2-1
Lecture 4   chapter 1 review section 2-1Lecture 4   chapter 1 review section 2-1
Lecture 4 chapter 1 review section 2-1
njit-ronbrown
 
Matrices
MatricesMatrices
Matrices
NORAIMA
 
Matlab colon notation
Matlab colon notationMatlab colon notation
Matlab colon notation
pramodkumar1804
 
Algebra booklet
Algebra bookletAlgebra booklet
Algebra booklet
RameenKamran1
 
Graph therory
Graph theroryGraph therory
Graph therory
mohanrathod18
 
Coordinate plane
Coordinate planeCoordinate plane
Coordinate plane
Dulce Garza
 
Basics of graph
Basics of graphBasics of graph
Basics of graph
Khaled Sany
 
Diagonalization of Matrices
Diagonalization of MatricesDiagonalization of Matrices
Diagonalization of Matrices
AmenahGondal1
 
Conversion of in fix pre fix,infix by sarmad baloch
Conversion of in fix pre fix,infix by sarmad balochConversion of in fix pre fix,infix by sarmad baloch
Conversion of in fix pre fix,infix by sarmad baloch
Sarmad Baloch
 
Applied maths for electronics engineers jan 2013 (2)
Applied maths for electronics engineers jan 2013 (2)Applied maths for electronics engineers jan 2013 (2)
Applied maths for electronics engineers jan 2013 (2)
SRI TECHNOLOGICAL SOLUTIONS
 
Applications of integration
Applications of integrationApplications of integration
Applications of integration
18902
 
Teaching notes slope 2015
Teaching notes slope 2015Teaching notes slope 2015
Teaching notes slope 2015
pabloelsoldado
 
PGL (Persamaan Garis Dari Gambar Garis Lurus & Dari Dua Titik) - Pertemuan 1
PGL (Persamaan Garis Dari Gambar Garis Lurus & Dari Dua Titik) - Pertemuan 1PGL (Persamaan Garis Dari Gambar Garis Lurus & Dari Dua Titik) - Pertemuan 1
PGL (Persamaan Garis Dari Gambar Garis Lurus & Dari Dua Titik) - Pertemuan 1
Shinta Novianti
 
2021 icse reducedsylabiix-mathematics
2021 icse reducedsylabiix-mathematics2021 icse reducedsylabiix-mathematics
2021 icse reducedsylabiix-mathematics
Vahabshaik Shai
 

What's hot (15)

9.2 graphing simple rational functions
9.2 graphing simple rational functions9.2 graphing simple rational functions
9.2 graphing simple rational functions
 
Lecture 4 chapter 1 review section 2-1
Lecture 4   chapter 1 review section 2-1Lecture 4   chapter 1 review section 2-1
Lecture 4 chapter 1 review section 2-1
 
Matrices
MatricesMatrices
Matrices
 
Matlab colon notation
Matlab colon notationMatlab colon notation
Matlab colon notation
 
Algebra booklet
Algebra bookletAlgebra booklet
Algebra booklet
 
Graph therory
Graph theroryGraph therory
Graph therory
 
Coordinate plane
Coordinate planeCoordinate plane
Coordinate plane
 
Basics of graph
Basics of graphBasics of graph
Basics of graph
 
Diagonalization of Matrices
Diagonalization of MatricesDiagonalization of Matrices
Diagonalization of Matrices
 
Conversion of in fix pre fix,infix by sarmad baloch
Conversion of in fix pre fix,infix by sarmad balochConversion of in fix pre fix,infix by sarmad baloch
Conversion of in fix pre fix,infix by sarmad baloch
 
Applied maths for electronics engineers jan 2013 (2)
Applied maths for electronics engineers jan 2013 (2)Applied maths for electronics engineers jan 2013 (2)
Applied maths for electronics engineers jan 2013 (2)
 
Applications of integration
Applications of integrationApplications of integration
Applications of integration
 
Teaching notes slope 2015
Teaching notes slope 2015Teaching notes slope 2015
Teaching notes slope 2015
 
PGL (Persamaan Garis Dari Gambar Garis Lurus & Dari Dua Titik) - Pertemuan 1
PGL (Persamaan Garis Dari Gambar Garis Lurus & Dari Dua Titik) - Pertemuan 1PGL (Persamaan Garis Dari Gambar Garis Lurus & Dari Dua Titik) - Pertemuan 1
PGL (Persamaan Garis Dari Gambar Garis Lurus & Dari Dua Titik) - Pertemuan 1
 
2021 icse reducedsylabiix-mathematics
2021 icse reducedsylabiix-mathematics2021 icse reducedsylabiix-mathematics
2021 icse reducedsylabiix-mathematics
 

Similar to equation of a line class

2.5 Equations of Lines
2.5 Equations of Lines2.5 Equations of Lines
2.5 Equations of Lines
smiller5
 
Investigation 8;06
Investigation 8;06Investigation 8;06
Investigation 8;06
gdiane
 
Investigation 8;06
Investigation 8;06Investigation 8;06
Investigation 8;06
gdiane
 
Mathnumberplane
MathnumberplaneMathnumberplane
Mathnumberplane
mini96k
 
1237
12371237
1237
12371237
February 2, 2015
February 2, 2015February 2, 2015
February 2, 2015
khyps13
 
March 19
March 19March 19
March 19
khyps13
 
11 x1 t05 03 equation of lines (2012)
11 x1 t05 03 equation of lines (2012)11 x1 t05 03 equation of lines (2012)
11 x1 t05 03 equation of lines (2012)
Nigel Simmons
 
11X1 T05 03 equation of lines (2010)
11X1 T05 03 equation of lines (2010)11X1 T05 03 equation of lines (2010)
11X1 T05 03 equation of lines (2010)
Nigel Simmons
 
11 x1 t05 03 equation of lines (2013)
11 x1 t05 03 equation of lines (2013)11 x1 t05 03 equation of lines (2013)
11 x1 t05 03 equation of lines (2013)
Nigel Simmons
 
11X1 T05 03 equation of lines (2011)
11X1 T05 03 equation of lines (2011)11X1 T05 03 equation of lines (2011)
11X1 T05 03 equation of lines (2011)
Nigel Simmons
 
Maths Assignment Help
Maths Assignment HelpMaths Assignment Help
Maths Assignment Help
Maths Assignment Help
 
3 6 2 d linear inequalities-x
3 6 2 d linear inequalities-x3 6 2 d linear inequalities-x
3 6 2 d linear inequalities-x
math123b
 
Solving Quadratics
Solving QuadraticsSolving Quadratics
Solving Quadratics
allie125
 
Quant02
Quant02Quant02
Quant02
Divya Surana
 
Math - analytic geometry
Math - analytic geometryMath - analytic geometry
Math - analytic geometry
immortalmikhel
 
identities1.2
identities1.2identities1.2
identities1.2
John Michael Liguan
 
Straight lines
Straight linesStraight lines
Straight lines
indu psthakur
 
College Algebra 2.1
College Algebra 2.1College Algebra 2.1
College Algebra 2.1
Jeneva Clark
 

Similar to equation of a line class (20)

2.5 Equations of Lines
2.5 Equations of Lines2.5 Equations of Lines
2.5 Equations of Lines
 
Investigation 8;06
Investigation 8;06Investigation 8;06
Investigation 8;06
 
Investigation 8;06
Investigation 8;06Investigation 8;06
Investigation 8;06
 
Mathnumberplane
MathnumberplaneMathnumberplane
Mathnumberplane
 
1237
12371237
1237
 
1237
12371237
1237
 
February 2, 2015
February 2, 2015February 2, 2015
February 2, 2015
 
March 19
March 19March 19
March 19
 
11 x1 t05 03 equation of lines (2012)
11 x1 t05 03 equation of lines (2012)11 x1 t05 03 equation of lines (2012)
11 x1 t05 03 equation of lines (2012)
 
11X1 T05 03 equation of lines (2010)
11X1 T05 03 equation of lines (2010)11X1 T05 03 equation of lines (2010)
11X1 T05 03 equation of lines (2010)
 
11 x1 t05 03 equation of lines (2013)
11 x1 t05 03 equation of lines (2013)11 x1 t05 03 equation of lines (2013)
11 x1 t05 03 equation of lines (2013)
 
11X1 T05 03 equation of lines (2011)
11X1 T05 03 equation of lines (2011)11X1 T05 03 equation of lines (2011)
11X1 T05 03 equation of lines (2011)
 
Maths Assignment Help
Maths Assignment HelpMaths Assignment Help
Maths Assignment Help
 
3 6 2 d linear inequalities-x
3 6 2 d linear inequalities-x3 6 2 d linear inequalities-x
3 6 2 d linear inequalities-x
 
Solving Quadratics
Solving QuadraticsSolving Quadratics
Solving Quadratics
 
Quant02
Quant02Quant02
Quant02
 
Math - analytic geometry
Math - analytic geometryMath - analytic geometry
Math - analytic geometry
 
identities1.2
identities1.2identities1.2
identities1.2
 
Straight lines
Straight linesStraight lines
Straight lines
 
College Algebra 2.1
College Algebra 2.1College Algebra 2.1
College Algebra 2.1
 

Recently uploaded

Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
GetInData
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
AndrzejJarynowski
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
roli9797
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
Walaa Eldin Moustafa
 
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
zsjl4mimo
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
sameer shah
 
State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023
kuntobimo2016
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
soxrziqu
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
nuttdpt
 
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
74nqk8xf
 
Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
Bill641377
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
Global Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headedGlobal Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headed
vikram sood
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 
Natural Language Processing (NLP), RAG and its applications .pptx
Natural Language Processing (NLP), RAG and its applications .pptxNatural Language Processing (NLP), RAG and its applications .pptx
Natural Language Processing (NLP), RAG and its applications .pptx
fkyes25
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
bopyb
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
rwarrenll
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
g4dpvqap0
 

Recently uploaded (20)

Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
 
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
 
State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
 
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
 
Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
Global Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headedGlobal Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headed
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 
Natural Language Processing (NLP), RAG and its applications .pptx
Natural Language Processing (NLP), RAG and its applications .pptxNatural Language Processing (NLP), RAG and its applications .pptx
Natural Language Processing (NLP), RAG and its applications .pptx
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
 

equation of a line class

  • 1. Line in Two Dimensional Plane: The equation of a line in standard form is ax + by = c, wherein both a and b cannot be zero, and a,b, and care real numbers. Ifb ≠ 0, then –a/b is the slope of the line. Ifa = 0, then it is a horizontal line, and if b = 0, then it is a vertical line. The slope of a vertical line is undefined. Two lines are parallelif they have the same slopeor both are vertical lines.Two lines are perpendicular ifeither one of the lines is horizontal and the other is vertical or the product of their slopes is –1. Design the class LineType to store a line. To store a line, you need to store the values of a (coefficient of x), b (coefficient of y), and c. Your class must contain the following operations: a. If a line is non-vertical, then determine its slope. b. Determine if two lines are equal. (Two lines a1x + b1y = c1 and a2x + b2y = c2 are equal if either a1 = a2, b1= b2, and c1 = c2 or a1= k a2, b1= k b2, and c1= k c2 for some real number k.) c. Determine if two lines are parallel. d. Determine if two lines are perpendicular. e. If two lines are not parallel, then find the point of intersection.