Wednesday, July 1, 2026
HomeLanguagesPython | Sympy Plane.equation() method

Python | Sympy Plane.equation() method

In Simpy, the function Plane.equation() is used to make equation of a given Plane.

Syntax :  Plane.equation(x, y, z)

Parameters :
x :  optional
y :  optional
z :  optional

Returns : Equation of Plane

Example #1:




# import sympy, Point3D and Plane
from sympy import Point3D, Plane
  
# using Plane()
  
p1 = Plane(Point3D(1, 2, 3), Point3D(4, 5, 6), Point3D(0, 2, 0))
p2 = p1.equation()
  
print(p2)


Output:

-9*x + 6*y + 3*z - 12

Example #2:




# import sympy, Point3D and Plane
from sympy import Point3D, Plane
  
# using Plane()
  
p3 = Plane(Point3D(1, 2, 3), normal_vector =(2, 2, 2))
p4 = p3.equation()
  
print(p4)


Output:

2*x + 2*y + 2*z - 12
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

2 COMMENTS

Most Popular

Dominic
32517 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6900 POSTS0 COMMENTS
Nicole Veronica
12014 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12110 POSTS0 COMMENTS
Shaida Kate Naidoo
7019 POSTS0 COMMENTS
Ted Musemwa
7262 POSTS0 COMMENTS
Thapelo Manthata
6976 POSTS0 COMMENTS
Umr Jansen
6966 POSTS0 COMMENTS