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

ERROR - "Action could not be performed with text." - ??? - ERROR - "Action could not be performed with text." - Сообщения

#1 Опубликовано: 02.03.2016 15:21:36
justhumm

justhumm

0 сообщений из 18 понравились пользователям.

Группа: 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.

Файл не найден.Файл не найден.
#2 Опубликовано: 02.03.2016 15:47:46
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: 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 Опубликовано: 02.03.2016 17:25:19
justhumm

justhumm

0 сообщений из 18 понравились пользователям.

Группа: 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 Опубликовано: 02.03.2016 20:03:04
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: 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 пользователям понравился этот пост
justhumm 03.03.2016 10:37:00
#5 Опубликовано: 03.03.2016 10:36:53
justhumm

justhumm

0 сообщений из 18 понравились пользователям.

Группа: 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 Опубликовано: 03.03.2016 11:34:20
justhumm

justhumm

0 сообщений из 18 понравились пользователям.

Группа: 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 Опубликовано: 03.03.2016 12:14:03
sergio

sergio

115 сообщений из 329 понравились пользователям.

Группа: User

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

Extension Function

sergio
1 пользователям понравился этот пост
Davide Carpi 03.03.2016 13:34:00
#8 Опубликовано: 03.03.2016 16:00:41
sergio

sergio

115 сообщений из 329 понравились пользователям.

Группа: User

the plugin was included in Custom Functions

sergio
1 пользователям понравился этот пост
Davide Carpi 03.03.2016 16:29:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений