ktoz
- 170
- 12
Is there a way to introduce logical tests into equations? For example, C has a very useful operator "?:" which returns values like so:
x = (x < 1) ? 1 : x;
which could be used in equations like this to multiply by 1 for any value less than 1.
Q(x) = \prod_{j=-5}^x ((j < 1) ? 1 : j)
Just wondering...
Ken
x = (x < 1) ? 1 : x;
which could be used in equations like this to multiply by 1 for any value less than 1.
Q(x) = \prod_{j=-5}^x ((j < 1) ? 1 : j)
Just wondering...
Ken
Last edited: