How to Solve Equations with java?

前端 未结 8 755
花落未央
花落未央 2020-12-03 05:45

I have three equations like the following ones:

  • x + y + z = 100;
  • x + y - z = 50;
  • x - y - z = 10;

How can I find the values of

8条回答
  •  星月不相逢
    2020-12-03 06:22

    You can use determinant to calculate values of x y and z. Logic can be found out here http://www.intmath.com/Matrices-determinants/1_Determinants.php

    And then you need to implement it in java using 3 dimensional arrays.

提交回复
热议问题