Piecewise fuction - type conversion error

Piecewise fuction - type conversion error - Piecewise fuction - type conversion error - Сообщения

#1 Опубликовано: 18.01.2019 22:16:30
justhumm

justhumm

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

Группа: User

I was playing around with SMath and trying to graph a piecewise function curve. I am receiving a "Type conversion error. Please contact the developer." message.

Any ideas what is causing that? version 0.99 (build 6884)

piecewise-eror.png

piecewise.sm (30 КиБ) скачан 43 раз(а).
#2 Опубликовано: 19.01.2019 05:24:23
Davide Carpi

Davide Carpi

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

Группа: Moderator

Hello,

the problem is that in boolean comparisions you are using matrices instead of scalars (in both arguments, x and um)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Опубликовано: 19.01.2019 09:11:33
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I was playing around with SMath and trying to graph a piecewise function curve.


For plotting, if/otherwise is convenient. Generally, for maths: if/else.
[< ...>] are for while loops and some exceptional algorithm(s).
Observe the undocumented min(x).
For Derivation/Integration of discontinuous functions use FD [Finite Differences].

Integrate Discontinuous [min(x)].sm (14 КиБ) скачан 61 раз(а).
Integrate Discontinuous [Nuance].sm (24 КиБ) скачан 58 раз(а).
#4 Опубликовано: 19.01.2019 14:10:03
justhumm

justhumm

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

Группа: User

Thanks for the replies!
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений