Solving equation by Grashhopper

Hello; i see several topics about how to solve equations ; and always the answer: Galapagos which take long time and don’t give all solutions if the equations need two or more solutions, or external softwares.
I don’t know if this posted before.
The idea is to use graph and find the intersections which are the solution; and more points mean more precision.

For example: x²-(2*x²)+6
Using https://www.symbolab.com, the solution is:

qwe

with Grasshopper:

solve equation.gh (13.0 KB)

I hope this help someone

2 Likes

er1

solve equation2.gh (12.5 KB)

Similar to solution of David Rutten :slightly_smiling_face:

qaw