1 Pages (8 items)
ERROR - "Action could not be performed with text." - ??? - ERROR - "Action could not be performed with text." - Messages
#1 Posted: 3/2/2016 3:21:36 PM
When generating a matrix from a previous (working) user defined function in SMath, it was giving the results that I was expecting, until I did "something" (I have no idea what) and I started getting the following error message:
"Action could not be performed with text."

(Strongback - Error.sm, attached)
Trying to troubleshoot it, I made a copy of the file (Strongback - Test.sm, attached) and all I think I did was change some of the input values to some smaller/clearer numbers. And it was working fine, without errors.

Can anyone point out what I might have done to generate there error?...Thanks!
I am currently running SMath ver. 0.97 (build: 5890) for windows.
File not found.File not found.
"Action could not be performed with text."
(Strongback - Error.sm, attached)
Trying to troubleshoot it, I made a copy of the file (Strongback - Test.sm, attached) and all I think I did was change some of the input values to some smaller/clearer numbers. And it was working fine, without errors.
Can anyone point out what I might have done to generate there error?...Thanks!
I am currently running SMath ver. 0.97 (build: 5890) for windows.
File not found.File not found.
#2 Posted: 3/2/2016 3:47:46 PM
Hellojusthumm,
el(M2m,0) simply doesn't exists, matrices and vectors in SMath are base-1 (1, 2, 3, ...); the error message is wrong (something in the priority of the exceptions, probably).
you can check yourself M2(46) using the "none" optimization, is "not defined"+"not defined", since those strings are output of your functions M2.DL(u) and M2.p(u). You have to define in a better way your function or handle differently the output.
el(M2m,0) simply doesn't exists, matrices and vectors in SMath are base-1 (1, 2, 3, ...); the error message is wrong (something in the priority of the exceptions, probably).
you can check yourself M2(46) using the "none" optimization, is "not defined"+"not defined", since those strings are output of your functions M2.DL(u) and M2.p(u). You have to define in a better way your function or handle differently the output.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Posted: 3/2/2016 5:25:19 PM
Davide:
Thank you very much for your response.
I had been (incorrectly) under the assumption that the matrices were base-0. And I had not noticed that my user functions were not evaluating as I had expected at the limits. I was assuming that M2.DL(46) = 0 and not the "not defined" value that it was actually returning.
For my own future reference, do you have any idea why the "if...(46-ft = L2)" statement is returning FALSE and going to the final "else" statement? I switched around the Optimization setting (which I am not real familiar with) for those functions, but it didn't seem to have any effect.
Thanks.

I had taken the "not defined" line from another forum post...
https://smath.com/wiki/(S(atscma45awgrr5ixiehfsb45))/Graphs.ashx
Thank you very much for your response.
I had been (incorrectly) under the assumption that the matrices were base-0. And I had not noticed that my user functions were not evaluating as I had expected at the limits. I was assuming that M2.DL(46) = 0 and not the "not defined" value that it was actually returning.
For my own future reference, do you have any idea why the "if...(46-ft = L2)" statement is returning FALSE and going to the final "else" statement? I switched around the Optimization setting (which I am not real familiar with) for those functions, but it didn't seem to have any effect.
Thanks.
I had taken the "not defined" line from another forum post...
https://smath.com/wiki/(S(atscma45awgrr5ixiehfsb45))/Graphs.ashx
#4 Posted: 3/2/2016 8:03:04 PM
You're welcome,
Don't worry, it happens.
I suspect is a bug (opened as issue SS-2300)
Until is not clarified, don't use booleans with units (use L2/ft)
WroteI had been (incorrectly) under the assumption that the matrices were base-0. And I had not noticed that my user functions were not evaluating as I had expected at the limits. I was assuming that M2.DL(46) = 0 and not the "not defined" value that it was actually returning.
Don't worry, it happens.

WroteFor my own future reference, do you have any idea why the "if...(46-ft = L2)" statement is returning FALSE and going to the final "else" statement? I switched around the Optimization setting (which I am not real familiar with) for those functions, but it didn't seem to have any effect.
I suspect is a bug (opened as issue SS-2300)
Until is not clarified, don't use booleans with units (use L2/ft)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
justhumm 3/3/2016 10:37:00 AM
#5 Posted: 3/3/2016 10:36:53 AM
#6 Posted: 3/3/2016 11:34:20 AM
And just to note this down, when working with "IF" statements and BOOLEAN conditions in SMath, is seems better...
...to use ( a <= b ) AND ( b <= c ) structure
INSTEAD of ( a <= b <= c )

https://smath.com/wiki/(S(a3wyc5jalhq4v1ftjqepdo2l))/Print.aspx?Page=if
...to use ( a <= b ) AND ( b <= c ) structure
INSTEAD of ( a <= b <= c )
https://smath.com/wiki/(S(a3wyc5jalhq4v1ftjqepdo2l))/Print.aspx?Page=if
#8 Posted: 3/3/2016 4:00:41 PM
the plugin was included in Custom Functions
sergio
sergio
1 users liked this post
Davide Carpi 3/3/2016 4:29:00 PM
1 Pages (8 items)
-
New Posts
-
No New Posts