Piecewise fuction - type conversion error

Piecewise fuction - type conversion error - Piecewise fuction - type conversion error - Messages

#1 Posted: 1/18/2019 10:16:30 PM
justhumm

justhumm

0 likes in 18 posts.

Group: 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 KiB) downloaded 43 time(s).
#2 Posted: 1/19/2019 5:24:23 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: 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 Posted: 1/19/2019 9:11:33 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 61 time(s).
Integrate Discontinuous [Nuance].sm (24 KiB) downloaded 58 time(s).
#4 Posted: 1/19/2019 2:10:03 PM
justhumm

justhumm

0 likes in 18 posts.

Group: User

Thanks for the replies!
  • New Posts New Posts
  • No New Posts No New Posts