English

# Cpp Code for Cartesian Equation of a Plane

This cpp programming code is used to find the cartesian equation of a plane. You can select the whole cpp code by clicking the select option and can use it. When you click text, the code will be changed to text format. This cpp program code will be opened in a new pop up window once you click pop-up from the right corner. You can just copy, paste this cpp code and use it to find the cartesian equation of a plane.

```#include<iostream>
using namespace std;
#include<math.h>
int main()
{
float a=0,b=0,c=0,d=0;
float a1=2,a2=-2,a3=-2,b1=3,b2=4,b3=-1,c1=4,c2=8,c3=4;
a =(b2-a2)*(c3-a3)-(c2-a2)*(b3-a3);
b =(b3-a3)*(c1-a1)-(c3-a3)*(b1-a1);
c =(b1-a1)*(c2-a2)-(c1-a1)*(b2-a2);
d =-(a*a1+b*a2+c*a3);
cout<<"Equation of the plane(given three points) "<<a<<" x+ "<<c<<" y+ "<<c<<" z+ "<<d<<" = 0";
return 0;
}
```
##### Other Programming Codes
Online Calculator : Cartesian Equation of a Plane
Click on the select code link to copy and paste this free cpp program code for cartesian equation of a plane.