fix superscript 1

This commit is contained in:
hugogogo
2026-05-07 14:28:58 +02:00
parent f373fef4ac
commit 09701f8884
9 changed files with 75 additions and 23 deletions

View File

@@ -41,9 +41,15 @@ this project uses submodules (maybe recursively), so either :
- 3
- ...
4. print reduced form
5. find degree
6. print degree
7. solve
-> print reduced form
-> if degree 1 :
- if c = 0 -> print "any real is a solution"
- if c != 0 -> print "no solution"
-> if degree 2 :
- print degree
-> if degree 3 :
- print degree
5. solve
-> discriminant : Δ = b² - 4ac
-> Δ > 0 -> 2 solutions : x = ( -b / 2a ) +- ( √|Δ| / 2a )
-> Δ == 0 -> : x = ( -b / 2a )
@@ -61,4 +67,4 @@ this project uses submodules (maybe recursively), so either :
- second_term; // double (√|Δ| / 2a)
- double solution1; // first_term + second_term
- double solution2; // first_term - second_term
8. print solution
6. print solution