/extract-middle-term

Take two number from two statement when trying to factor second-degree equations

Primary LanguageC++GNU General Public License v3.0GPL-3.0

extract-middle-term

Take two number from two statement when trying to factor second-degree equations

Purpose

When factoring in order to obtain two terms from b you will reach and which requires you to "guess" the numbers. As this is a repetitive work, why not give it to the computer.

Usage

There is a run.sh file which only puts the program in a loop, when running the program it will prompts you with xy= and then x+y= and then outputs the result. As some equations are "prime" if program couldn't find any it will prints that out.

Note: It only works with numbers!