42_Computor v1
This project is the first in a series that aims to make you rekindle with maths. They will be quite useful - not to say essential - for numerous projects to come.
This project aims to get acquainted with handling elementary math tools that may be helpful for other 42 projects. You will not “do math for doing math”, but to develop a progressive and relaxed approach to projects where these tools are needed. You can choose the language of your choice for this subject.
Write a program that solves a polynomial second or lower-degree equation. You will have to show at least:
• The equation in its reduced form.
• The degree of the equation.
• Its solution(s) and the polarity of the discriminant if it makes sense.
We will always expect the entry to have the right format, i.e. every term respects the form
There might be exceptions you will have to manage. In the equation