Python | Sympy Line.is_parallel() method Read Courses Practice Improve Improve Improve Like Article Like Save Article Save Report issue Report In Sympy, the function is_parallel() is used to check whether the two linear entities are parallel or not. Syntax: Line.is_parallel(l2) Parameters: l1: LinearEntity l2: LinearEntity Returns: True: if l1 and l2 are parallel, False: otherwise. Example #1: # import sympy and Point, Line from sympy import Point, Line p1, p2 = Point(0, 0), Point(1, 1) p3, p4 = Point(3, 4), Point(6, 7) l1, l2 = Line(p1, p2), Line(p3, p4) # using is_parallel() method isParallel = Line.is_parallel(l1, l2) print(isParallel) Output: True Example #2: # import sympy and Point, Line from sympy import Point, Line p1, p2 = Point(0, 0), Point(1, 1) p3, p4 = Point(3, 4), Point(6, 6) l1, l2 = Line(p1, p2), Line(p3, p4) # using is_parallel() method isParallel = Line.is_parallel(l1, l2) print(isParallel) Output: False Don't miss your chance to ride the wave of the data revolution! Every industry is scaling new heights by tapping into the power of data. Sharpen your skills and become a part of the hottest trend in the 21st century. Dive into the future of technology - explore the Complete Machine Learning and Data Science Program by GeeksforGeeks and stay ahead of the curve. Last Updated : 10 Feb, 2020 Like Article Save Article Previous sympy.integrals.transforms.inverse_sine_transform() in python Next Keras vs PyTorch Share your thoughts in the comments Add Your Comment Please Login to comment...