min(a,b) and max(a,b) equation for HP33S/HP35S Message #1 Posted by x34 on 30 Jan 2011, 10:48 a.m.
HP33s and HP35s lack min and max functions. Yes, they could be easily programmed, but..
a) Label would be consumed on HP33S (not a problem for HP35S, thou)
b) You can't use conditionals in the Equation Writer
So, here is simple (but awkward) brute force implementation of MIN & MAX using Signum function, present on these calculators.
MIN(a,b)=((ba)*SGN(ab)+b+a)/2
MAX(a,b)=((ab)*SGN(ab)+b+a)/2
If used in program, they could be simplified by isolating (ab).
