Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline mkraska  
#1 Posted : 10 September 2013 02:46:56(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,988
Germany

Was thanked: 1127 time(s) in 723 post(s)
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.
File Attachment(s):
example support reactions linear system.sm (34kb) downloaded 99 time(s).
Section linsolve.sm (28kb) downloaded 109 time(s).
mkraska attached the following image(s):
Linsolve.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 3 users thanked mkraska for this useful post.
on 10/09/2013(UTC),  on 10/09/2013(UTC),  on 11/09/2013(UTC)

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline mkraska  
#2 Posted : 12 September 2013 01:38:57(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,988
Germany

Was thanked: 1127 time(s) in 723 post(s)
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.
File Attachment(s):
Example Residual beam2.sm (29kb) downloaded 57 time(s).
mkraska attached the following image(s):
Residual.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.