LinSolve snippet

LinSolve snippet - Messages

#1 Posted: 9/9/2013 7:46:56 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

I have uploaded a snippet for solving linear systems given as vector of equations much like in the NonLinear Solvers plugin. Unfortunately, I did not manage to implement embedded results assignment. Thus, this snippet is only a modest preview of what a plugin function LinSolve could do. I shall withdraw the snippet from the gallery as soon as such a plugin function is provided by one of our great plugin programmers.
Section linsolve.sm (27 KiB) downloaded 134 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
3 users liked this post
Radovan Omorjan 9/10/2013 1:38:00 AM, Davide Carpi 9/10/2013 5:01:00 AM, Andrey Ivashov 9/11/2013 7:52:00 AM
#2 Posted: 9/11/2013 6:38:57 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

I have updated the LinSolve snippet in the gallery. Now there is a function Residual() for checking solutions of systems of equations.
It does not require the solution to be assigned to the variables, just specify the system and the solution vector. The vector can be generated in place by
the call to the solver.
This way you can test and document the solution quality without lots of assignments and Clear() calls or switching on and off alternatives.
Residual.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
  • New Posts New Posts
  • No New Posts No New Posts