0

It's not obvious to me how to plot on wolframalpha a function that contains conditionals, the one I have in mind is:

clamp lowerBound upperBound i
  | i > upperBound = upperBound
  | i < lowerBound = lowerBound
  | otherwise      = i
Toshio
  • 133
  • 8

2 Answers2

2

I've used min(max(i, lowerBound), upperBound), but it does make your equation look messy.

Unknown1987
  • 1,671
  • 13
  • 30
0

clip(i, {lowerBound, upperBound})

flacs
  • 3,913
  • 4
  • 19
  • 20