Boolean less than and greater than

Boolean less than and greater than - difficulty using < and > - Messages

#1 Posted: 1/29/2014 12:27:21 PM
MrGreen

MrGreen

0 likes in 2 posts.

Group: User

hi there,

I've just started using smath for a uni project,and i am trying to get an answer not to exceed a particular amount, i was hoping that you guys might have a method, tips or tutorial to explain it.

thanks in advance
#2 Posted: 1/30/2014 4:47:15 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Hi Mr Green,

You can use booleans and programming functions (if/else) to check if your answer fit your target.

On the wiki you can found an example (here) and also a lot of tutorials and examples about using SMath Studio.

Moreover, there are plugins to extends these features:
- CF Label plugin
- Functions' Extensions
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/30/2014 4:48:18 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Hi Mr Green,

You can use booleans and programming functions (if/else) to check if your answer fit your target.

On the wiki you can found an example (here) and also a lot of tutorials and examples about using SMath Studio.

Moreover, there are plugins to extends these features:
- CF Label plugin
- Functions' Extensions
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#4 Posted: 2/19/2014 10:08:21 AM
MrGreen

MrGreen

0 likes in 2 posts.

Group: User

thanks very much
#5 Posted: 2/19/2014 1:50:51 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

i am trying to get an answer not to exceed a particular amount



you might just use [MATH]Min(whatever_you_get;upper_limit)[/MATH]. The lowercase function [MATH]min(#)[/MATH] works as well but just takes a single vector or matrix argument.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Davide Carpi 2/19/2014 2:35:00 PM
  • New Posts New Posts
  • No New Posts No New Posts