How to solve a factorisation equation in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How to solve a factorisation equation in java

15th Feb 2020, 10:58 AM
TheLegendaryPramoda
TheLegendaryPramoda - avatar
3 Answers
+ 3
You can create a code that checks if an equation is factorisable by using b² - 4ac formula... If you want to factorise the input itself, it requires a hell lot of coding... Go through this code to get an idea... https://code.sololearn.com/ca4K1D1oiYoO/?ref=app
17th Feb 2020, 12:38 PM
Jaideep Nirmal AJ
Jaideep Nirmal AJ - avatar
+ 4
Yes bro thank you very much
17th Feb 2020, 1:33 PM
TheLegendaryPramoda
TheLegendaryPramoda - avatar
+ 1
TheLegendaryPramoda You can simply use Shridharacharya formula and print the result roots in the form of (x-r1)(x-r2)= 0. To print step by step, even I don't know. To print answers to higher degree use binomial formula.
3rd Jul 2020, 9:42 AM
Yashvardhan Singh
Yashvardhan Singh - avatar