Imagine having any two functions. You need to find intersections of that functions. You definitely don't want to try all x values to check for f(x)==g(x)
.
Normally in math, you create simultaneous equations derived from f(x)==g(x)
. But I see no way how to implement equations in any programing language.
So once more, what am I looking for:
- Conceptual algorithm to solve equations.
- The same for simultaneous and quadratic equations.
I believe there should be some workaround using function derivations, but I've recently learned derivation concept at school and I have no idea how to use it in this case.