loop while

loop while - loop while from mathcad prime to SMath Studio - Messages

#1 Posted: 9/11/2021 2:25:54 PM
Erick Valentino

Erick Valentino

7 likes in 28 posts.

Group: User

How can I do this loop while?
what am I doing wrong?

NR.sm (8 KiB) downloaded 22 time(s).

NR.jpg
#2 Posted: 9/11/2021 3:00:19 PM
Erick Valentino

Erick Valentino

7 likes in 28 posts.

Group: User

I think it already came out, but how do I make the numbers that are almost 0 not appear as 2.72 * 10 ^ -17?

imagen_2021-09-11_125819.png
#3 Posted: 9/11/2021 3:23:39 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Add a check for every element if they are lower than something.
And if they are, make them zero.

Regards

2021-09-11_21-22.png
1 users liked this post
Erick Valentino 9/11/2021 3:40:00 PM
#4 Posted: 9/11/2021 3:43:26 PM
Erick Valentino

Erick Valentino

7 likes in 28 posts.

Group: User

Wrote

Add a check for every element if they are lower than something.
And if they are, make them zero.

Regards

2021-09-11_21-22.png



what function does this have?

iMarkup_20210911_133439.jpg

Thank you so much
#5 Posted: 9/11/2021 4:09:46 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

what function does this have?


That is cases(), it is in Custom Functions plugin.
I would prefer to write your algorithm like attached.
It is just my preference by the way.

Regards

NR_r1.sm (9 KiB) downloaded 23 time(s).

2021-09-11_22-09.png
  • New Posts New Posts
  • No New Posts No New Posts