r/PHPhelp • • Aug 04 '25

Help fix bug

olabie2/math-solver: A

So this is the repo, the problem is it when you enter an equation like this 4x * x = 3 it doesnt work
but when you enter 4x^2 = 3 it does work so please if anyone can take a look.

I want to hear your opinions on the code structure and the way I handling the expressions and find a solution there. as well as the way I present the soslution.

Thank you so much.

1 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/ColonelMustang90 Aug 06 '25

Question: the parameter passed to the QuadraticSolver, is it a string or array ?? Can you share the function definition of QuadraticSolver ??