Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,700 Location: Italy Was thanked: 1372 time(s) in 898 post(s)
|
Originally Posted by: omorr w3b5urf3r you are my hero rinks: Many things like this one would make me very happy ancing: Regards, Radovan P.S. Do not take me wrong please, I am very happy that you've made this plugin but I think that my "home made" function does not deserve to be the reference to this rather welcome and appreciated plugin. I hope that your updates would base this plugin to some more trustworthy source. you're right, but I did not know where to start and that function was a good starting point. Currently, the plugin follows almost exactly that function, but if anyone has a more efficient version of the algorithm could certainly be implemented. Originally Posted by: omorr Hello w3b5urf3r Rather surprised and excited with this sys() thing regarding Broyden() Yes, I have lost a bit of time on this, I wanted the function to accept both individual functions or systems defined in vectors or in the "multiple values" item. Originally Posted by: omorr As I do not know how is this working yet, this is a minor observation at a first glance.
It seems that the vector indices play main role here.
Broyden(sys(el(x,1)-2*el(x,2)+5,el(x,1)+3*el(x,2)-1,2,1),sys(1,2,2,1),eps,maxiter)=mat(-2.6,1.2,2,1)
Broyden(sys(el(a,1)-el(2*b,2)+5,el(c,1)+3*el(d,2)-1,2,1),sys(1,2,2,1),eps,maxiter)=mat(-2.6,1.2,2,1)
Broyden(sys(el(a,1)-el(2*b,2)+el(e,1),el(c,1)+3*el(d,2)+el(f,1),2,1),sys(1,2,2,1),eps,maxiter)=mat(0,0,2,1)
This might be a confusion because vectors a,b,c,d,e,f are not defined and there is still a result returned. You managed to avoid mentioning vector of unknowns like in the roots(), and I think that vector indices are crucial things here to distinguish between unknowns, not sure. Am I right? If that is the case, I thing that this should be taken care of in the case of different vectors elements with the same indices in order what to refer to as vector of unknowns.
Best wishes, Radovan You're right, my parser check if there are undefined variables but it doesn't distinguish between them... Actually the assumption is that there is "one variable" (x,X,K,or something you want) or "a system of variables" (x[1],x[2],x[3],...), so actually a[1] and b[1] are both the same thing (the first element of the starting values vector) I think I can easily add a control that returns an error on the number of vars... If you want to use "multiple variables" (one varibale -> one vector element) I think we can do something, but with some limitations regarding the names (f.e. "i" and "e" are both constants). regards, w3b5urf3r Edited by user 05 September 2012 16:59:48(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|