Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline justhumm  
#1 Posted : 19 January 2019 04:16:30(UTC)
justhumm


Rank: Member

Groups: Registered
Joined: 02/03/2016(UTC)
Posts: 18
United States

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 (31kb) downloaded 17 time(s).

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Davide Carpi  
#2 Posted : 19 January 2019 11:24:23(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
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
Offline Jean Giraud  
#3 Posted : 19 January 2019 15:11:33(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: justhumm Go to Quoted Post
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).
Offline justhumm  
#4 Posted : 19 January 2019 20:10:03(UTC)
justhumm


Rank: Member

Groups: Registered
Joined: 02/03/2016(UTC)
Posts: 18
United States

Thanks for the replies!

Edited by moderator 20 January 2019 12:42:39(UTC)  | Reason: marked as Solved

Users browsing this topic
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.