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 Eugene  
#1 Posted : 13 May 2020 14:30:08(UTC)
Eugene

Rank: Newbie

Groups: Registered
Joined: 10/12/2018(UTC)
Posts: 7
Israel

Does anyone know how to solve this error?

Capture.PNG

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

Offline Razonar  
#2 Posted : 13 May 2020 17:18:01(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi. The error came from try to compare the vector time1 with the scalar T(1,1) in the first if. Maybe with the vectorization operator you can solve the issue, evaluating vectorize(rel(time1)).

Clipboard01.jpg

If not, you can try to modify the code with a loop for each element in the time1, like in this example:

Clipboard01.jpg

Best regards.
Alvaro.
thanks 1 user thanked Razonar for this useful post.
on 13/05/2020(UTC)
Offline Eugene  
#3 Posted : 14 May 2020 09:33:37(UTC)
Eugene

Rank: Newbie

Groups: Registered
Joined: 10/12/2018(UTC)
Posts: 7
Israel

Thanks. First one didn't work. Will try to add a loop as you suggested.
Offline Jean Giraud  
#4 Posted : 14 May 2020 12:55:34(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Eugene Go to Quoted Post
Thanks. First one didn't work. Will try to add a loop as you suggested.

From a complex vector.

for_Vector.PNG
Offline Davide Carpi  
#5 Posted : 14 May 2020 13:43:21(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
Also, you might use vectorize(rel(time1)) to apply the scalar function at each time1 value.
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Jean Giraud  
#6 Posted : 14 May 2020 21:22:11(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
More in there as cumulative.

Vector Cumulative.sm (25kb) downloaded 14 time(s).
Users browsing this topic
Guest
Similar Topics
Type conversion error while solving a system of ODEs (Questions)
by Oichi 27/01/2023 02:33:08(UTC)
Piecewise fuction - type conversion error (Bugs & Problems)
by justhumm 19/01/2019 04:16:30(UTC)
Type conversion error - Min() function (Questions)
by RFreund 07/12/2014 21:28:00(UTC)
type conversion error with booleans (Bugs & Problems)
by Davide Carpi 01/08/2012 12:52:37(UTC)
Type conversion error? (Bugs & Problems)
by omorr 09/06/2012 17:15:21(UTC)
"Type Conversion Error, See Developer" (Bugs & Problems)
by simple 27/10/2010 00:47:34(UTC)
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.