I would like to solve a system of linear equations, such as four equations with four unknowns. basically, I want to solve a matrix. Is this possible in Python component of grasshopper?
Well then this isn't a Grasshopper question. Normal common English questions posed to Google nearly always results in hits for various Amazon.com-like pages of review of answers for such questions, for any computer language like Python.
Oh, crap, sorry, it needs the popular Numpy library that you can NO LONGER successfully install in Rhino/Grasshopper due to their use of free "open source" .NET shackled IronPython abandonware ( http://www.grasshopper3d.com/forum/topics/scipy-and-numpy ).
So avoid answers that need Numpy.
Many hits also mention Scipy, the other popular math library. That's not even remotely possibly to install in Rhino/Grasshopper.
Here is one goo answer, where a dedicated user plays it out, then some cocky dude shows up with Numpy:
I wrote a tutorial about using Math.Net Numerics to solve linear equations in GhPython. This should give an idea about how to access its functionality. Otherwise, please feel free to ask.
I hope this is helpful,
Giulio -- Giulio Piacentino for Robert McNeel & Associates giulio@mcneel.com
Nik Willmore
Well then this isn't a Grasshopper question. Normal common English questions posed to Google nearly always results in hits for various Amazon.com-like pages of review of answers for such questions, for any computer language like Python.
Google: system of linear equations Python
https://www.google.com/search?q=system+of+linear+equations+Python&a...
Oh, crap, sorry, it needs the popular Numpy library that you can NO LONGER successfully install in Rhino/Grasshopper due to their use of free "open source" .NET shackled IronPython abandonware ( http://www.grasshopper3d.com/forum/topics/scipy-and-numpy ).
So avoid answers that need Numpy.
Many hits also mention Scipy, the other popular math library. That's not even remotely possibly to install in Rhino/Grasshopper.
Here is one goo answer, where a dedicated user plays it out, then some cocky dude shows up with Numpy:
http://code.activestate.com/recipes/578024-solve-simultaneous-linea...
Oct 20, 2015
Giulio Piacentino
Hi Lluis, hi all,
I wrote a tutorial about using Math.Net Numerics to solve linear equations in GhPython. This should give an idea about how to access its functionality. Otherwise, please feel free to ask.
I hope this is helpful,
Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com
Oct 21, 2015