SlideShare a Scribd company logo
1 of 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.

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 functionshisema01
 
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-1njit-ronbrown
 
Matrices
MatricesMatrices
MatricesNORAIMA
 
Coordinate plane
Coordinate planeCoordinate plane
Coordinate planeDulce Garza
 
Diagonalization of Matrices
Diagonalization of MatricesDiagonalization of Matrices
Diagonalization of MatricesAmenahGondal1
 
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 balochSarmad 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 integration18902
 
Teaching notes slope 2015
Teaching notes slope 2015Teaching notes slope 2015
Teaching notes slope 2015pabloelsoldado
 
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 1Shinta Novianti
 
2021 icse reducedsylabiix-mathematics
2021 icse reducedsylabiix-mathematics2021 icse reducedsylabiix-mathematics
2021 icse reducedsylabiix-mathematicsVahabshaik 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 Linessmiller5
 
Investigation 8;06
Investigation 8;06Investigation 8;06
Investigation 8;06gdiane
 
Investigation 8;06
Investigation 8;06Investigation 8;06
Investigation 8;06gdiane
 
Mathnumberplane
MathnumberplaneMathnumberplane
Mathnumberplanemini96k
 
February 2, 2015
February 2, 2015February 2, 2015
February 2, 2015khyps13
 
March 19
March 19March 19
March 19khyps13
 
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
 
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-xmath123b
 
Solving Quadratics
Solving QuadraticsSolving Quadratics
Solving Quadraticsallie125
 
Math - analytic geometry
Math - analytic geometryMath - analytic geometry
Math - analytic geometryimmortalmikhel
 
College Algebra 2.1
College Algebra 2.1College Algebra 2.1
College Algebra 2.1Jeneva 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

obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...yulianti213969
 
edited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdfedited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdfgreat91
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证acoha1
 
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证dq9vz1isj
 
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam DunksNOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam Dunksgmuir1066
 
Bios of leading Astrologers & Researchers
Bios of leading Astrologers & ResearchersBios of leading Astrologers & Researchers
Bios of leading Astrologers & Researchersdarmandersingh4580
 
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...ThinkInnovation
 
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...Klinik Aborsi
 
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...yulianti213969
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证acoha1
 
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarjSCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarjadimosmejiaslendon
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives23050636
 
社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token PredictionNABLAS株式会社
 
Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024patrickdtherriault
 
MATERI MANAJEMEN OF PENYAKIT TETANUS.ppt
MATERI  MANAJEMEN OF PENYAKIT TETANUS.pptMATERI  MANAJEMEN OF PENYAKIT TETANUS.ppt
MATERI MANAJEMEN OF PENYAKIT TETANUS.pptRachmaGhifari
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样jk0tkvfv
 
Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"John Sobanski
 
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...ThinkInnovation
 
How to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data AnalyticsHow to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data AnalyticsBrainSell Technologies
 
Formulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdfFormulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdfRobertoOcampo24
 

Recently uploaded (20)

obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
 
edited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdfedited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdf
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
 
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
 
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam DunksNOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
 
Bios of leading Astrologers & Researchers
Bios of leading Astrologers & ResearchersBios of leading Astrologers & Researchers
Bios of leading Astrologers & Researchers
 
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
 
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
 
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
 
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarjSCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives
 
社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction
 
Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024
 
MATERI MANAJEMEN OF PENYAKIT TETANUS.ppt
MATERI  MANAJEMEN OF PENYAKIT TETANUS.pptMATERI  MANAJEMEN OF PENYAKIT TETANUS.ppt
MATERI MANAJEMEN OF PENYAKIT TETANUS.ppt
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
 
Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"
 
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
 
How to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data AnalyticsHow to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data Analytics
 
Formulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdfFormulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdf
 

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.