Boolean less than and greater than

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

#1 Posted: 11 years ago
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: 11 years ago
Davide Carpi

Davide Carpi

1,418 likes in 2,874 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: 11 years ago
Davide Carpi

Davide Carpi

1,418 likes in 2,874 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: 11 years ago
MrGreen

MrGreen

0 likes in 2 posts.

Group: User

thanks very much
#5 Posted: 11 years ago
Martin Kraska

Martin Kraska

1,230 likes in 2,156 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 11 years ago
  • New Posts New Posts
  • No New Posts No New Posts