Java Code for Cartesian Equation of a Plane

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

import java.io.*;
import java.util.Scanner;
import java.lang.*;
class CartesianEquation
{
    public static void main(String[] args)
    {
         Scanner in = new Scanner(System.in);
         double a=0,b=0,c=0,d=0;
         double 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);
         System.out.println("Equation of the plane(given three points) "+a+" x+ "+b+" y+ "+c+" z+ "+d+" = 0");
}
}
Other Programming Codes
Online Calculator : Cartesian Equation of a Plane
Click on the select code link to copy and paste this free java program code for cartesian equation of a plane.

english Calculators and Converters


Sitemap