C Code for Cartesian Equation of a Plane

This c programming code is used to find the cartesian equation of a plane. You can select the whole c code by clicking the select option and can use it. When you click text, the code will be changed to text format. This c 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 c code and use it to find the cartesian equation of a plane.

#include<stdio.h>
#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); 
    printf("Equation of the plane(given three points) %f x+ %f y+ %f z+ %f = 0",a,b,c,d);
    return 0;
}
Other Programming Codes
Online Calculator : Cartesian Equation of a Plane
Click on the select code link to copy and paste this free c program code for cartesian equation of a plane.

english Calculators and Converters


Sitemap