Is there any way of solving $ax^3+bx^2+cx+d=0$, which I know has three roots, without knowing what $a, b, c$, and $d$ equal? I've tried using the formula that uses $p, q$, and $r$, though that always just returns undefined.
An example of what the cubic equation might be is $4x^3-6x^2+1=0$.
EDIT: Saying "not knowing the terms" was a bad choice of wording. The thing is that the values of $a, b, c$, and $d$ change, so I don't want an answer that relies on factoring or something similar because they would only work on certain values of $a, b, c$, and $d$.
EDIT 2: I'm not doing this in code.
EDIT 3: Here's a simplified example of what I'm trying to do: https://www.desmos.com/calculator/gsjtv0qnwn I'm trying to find where the red equation intersects the x-axis. Black lines are also at these points. The blue line that is Cardano's Formula does not exist because $4p^3+27q^2$ is not greater than $0$.