SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Piecewise fuction - type conversion error
Rank: Member Groups: Registered
Joined: 02/03/2016(UTC) Posts: 18
|
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.sm (31kb) downloaded 17 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,639 Location: Italy Was thanked: 1323 time(s) in 873 post(s)
|
Hello, the problem is that in boolean comparisions you are using matrices instead of scalars (in both arguments, x and um) Edited by user 19 January 2019 13:43:46(UTC)
| Reason: typo |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Originally Posted by: justhumm 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 (15kb) downloaded 37 time(s). Integrate Discontinuous [Nuance].sm (25kb) downloaded 37 time(s).
|
|
|
|
Rank: Member Groups: Registered
Joined: 02/03/2016(UTC) Posts: 18
|
Thanks for the replies! Edited by moderator 20 January 2019 12:42:39(UTC)
| Reason: marked as Solved
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Piecewise fuction - type conversion error
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.