Post Reply 
Interval and Parameter
01-08-2022, 09:58 PM
Post: #8
RE: Interval and Parameter
There's a relatively quick, somewhat cheeky way to limit the interval to what you want. It basically forces the function to return "NaN" when X>=2.

Instead of {2X if X<2, you could use 2X/(X<2). It works because of how "X<2" works. When X is less than 2, the expression "X<2" evaluates to "1". When it's greater than 2, it evaluates to "0".

In the latter case, it simply makes the whole thing evaluate to "NaN" as you have something over zero.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Interval and Parameter - Eulehund99 - 01-06-2022, 06:52 PM
RE: Interval and Parameter - roadrunner - 01-07-2022, 05:25 PM
RE: Interval and Parameter - Eulehund99 - 01-08-2022, 12:22 AM
RE: Interval and Parameter - pinkman - 01-08-2022, 07:26 AM
RE: Interval and Parameter - Wes Loewer - 01-08-2022, 08:21 AM
RE: Interval and Parameter - C.Ret - 01-08-2022, 03:11 PM
RE: Interval and Parameter - parisse - 01-08-2022, 04:33 PM
RE: Interval and Parameter - Eulehund99 - 01-09-2022, 01:24 PM
RE: Interval and Parameter - IHarwell - 01-08-2022 09:58 PM
RE: Interval and Parameter - Eulehund99 - 01-09-2022, 12:49 PM



User(s) browsing this thread: 1 Guest(s)