Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Hello Ed,
I hope this would not be off the topic - I do not do programming and not able to make plugins.
The "Multiple value" operator makes me confused sometimes. I can not figure out what could be all of its uses and properties.
I thing that the two things are the main purpose of its using: 1 - Making multiple graphs 2 - using plus/minus, minus plus operators 7±8=sys(15,-1,2,1) 7±8±3=sys(18,2,12,-4,4,1)
On the other hand, its elements are vector elements. a←sys(4,6,9,3,1) el(a,1)=4 el(a,2)=6el(a,3)=9 We can, say, add or multiply "Multiple value" elements a+a=sys(8,10,13,12,15,18,6,1)a*a=sys(16,24,36,54,81,5,1) It seems that the operator will be performed on all the elements but the result will consist of only unique elements - the same elements will not be repeated (this is valid for the numerical result, not for the symbolical). If you add some new vector elements: el(a,6)←90el(a,8)←19 The result might be confusing because there is the difference between numeric and symbolic result a=sys(4,6,9,0,90,19,6,1)a—sys(4,6,9,0,0,90,0,19,8,1) Again, it seems that numerical result will not consist of repeated values in spite of the symbolic one. We can check this by: el(a,8)=19 Moreover, if we assign the result to a variable - more surprises: A←a+aB←a*a A=sys(8,12,18,3,1)B=sys(16,36,81,3,1) I guess this is due to the SMath symbolic behavior and processing of expression a+a—2*sys(4,6,9,3,1)a*a—sys(4,6,9,3,1)^2 We can also mix it with a vectors or matrix as well c←mat(22,25,33,3,1) a+c=sys(mat(26,29,37,3,1),mat(28,31,39,3,1),mat(31,34,42,3,1),mat(22,25,33,3,1),mat(112,115,123,3,1),mat(41,44,52,3,1),6,1)a+c—mat(sys(4,6,9,0,0,90,0,19,8,1)+22,sys(4,6,9,0,0,90,0,19,8,1)+25,sys(4,6,9,0,0,90,0,19,8,1)+33,3,1)
Actually, the use of "Multiple values" still remained blurred to me.
Regards, Radovan |