ERROR - "Action could not be performed with text." - ???

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
justhumm

justhumm

0 likes in 18 posts.

Group: User

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."

smath-error.JPG

(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.

smath-test.JPG

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
Davide Carpi

Davide Carpi

1415 likes in 2873 posts.

Group: Moderator

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.
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
justhumm

justhumm

0 likes in 18 posts.

Group: User

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.

smath2.JPG

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
Davide Carpi

Davide Carpi

1415 likes in 2873 posts.

Group: Moderator

You're welcome,

Wrote

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.


Don't worry, it happens.

Wrote

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.


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
justhumm

justhumm

0 likes in 18 posts.

Group: User

Wrote

I suspect is a bug (opened as issue SS-2300)

Until is not clarified, don't use booleans with units (use L2/ft)



OK. It's good to know that my math skills were not completely failing me. :-D

Thanks again!

#6 Posted: 3/3/2016 11:34:20 AM
justhumm

justhumm

0 likes in 18 posts.

Group: User

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 )

smath3.JPG

https://smath.com/wiki/(S(a3wyc5jalhq4v1ftjqepdo2l))/Print.aspx?Page=if
#7 Posted: 3/3/2016 12:14:03 PM
sergio

sergio

115 likes in 329 posts.

Group: User

you can use the "lele" command after loading the plugin Function Extension

Extension Function

sergio
1 users liked this post
Davide Carpi 3/3/2016 1:34:00 PM
#8 Posted: 3/3/2016 4:00:41 PM
sergio

sergio

115 likes in 329 posts.

Group: User

the plugin was included in Custom Functions

sergio
1 users liked this post
Davide Carpi 3/3/2016 4:29:00 PM
  • New Posts New Posts
  • No New Posts No New Posts