bonanova Posted February 2, 2009 Report Share Posted February 2, 2009 For real numbers x, absolute value and maximum have the following meanings: Abs(x) is just the value of x without regard for sign: Abs(-3.3) = Abs(3.3) = 3.3 Max(x1, x2) is the larger of x1 and x2: Max(-9.2, 5.7) = Max(4.2, 5.7) = 5.7Just for fun, express Abs in terms of Max.For a bit of a challenge, express Max in terms of Abs.Have fun. Quote Link to comment Share on other sites More sharing options...
0 Guest Posted February 2, 2009 Report Share Posted February 2, 2009 (edited) Not sure if this is what you were looking for? Abs(x) = Max(x, -x) Edited February 2, 2009 by bonanova spoler added Quote Link to comment Share on other sites More sharing options...
0 Guest Posted February 2, 2009 Report Share Posted February 2, 2009 And then something like max(x,y) = [x + y + abs(x-y)] / 2 We could add, obviously : min(x,y) = [x + y - abs(x-y)] / 2 Quote Link to comment Share on other sites More sharing options...
0 Guest Posted February 2, 2009 Report Share Posted February 2, 2009 Unless I missed something Abs = Max (-x,x) and Max = Abs(x) Quote Link to comment Share on other sites More sharing options...
0 bonanova Posted February 2, 2009 Author Report Share Posted February 2, 2009 And then something like max(x,y) = [x + y + abs(x-y)] / 2 We could add, obviously : min(x,y) = [x + y - abs(x-y)] / 2 Bingo. Quote Link to comment Share on other sites More sharing options...
0 bonanova Posted February 2, 2009 Author Report Share Posted February 2, 2009 Unless I missed somethingAbs = Max (-x,x) and Max = Abs(x) OK on Abs. Max takes two arguments.... Quote Link to comment Share on other sites More sharing options...
0 Guest Posted February 2, 2009 Report Share Posted February 2, 2009 (edited) For real numbers x, absolute value and maximum have the following meanings: Abs(x) is just the value of x without regard for sign: Abs(-3.3) = Abs(3.3) = 3.3 Max(x1, x2) is the larger of x1 and x2: Max(-9.2, 5.7) = Max(4.2, 5.7) = 5.7Just for fun, express Abs in terms of Max.For a bit of a challenge, express Max in terms of Abs.Have fun. http://brainden.com/forum/uploads/emoticons/default_cool.png' alt='B))'>Abs(x)=Max(x,-x) Edited February 2, 2009 by bonanova Quote Link to comment Share on other sites More sharing options...
0 bonanova Posted February 2, 2009 Author Report Share Posted February 2, 2009 Abs(x)=Max(x,-x) Right. Quote Link to comment Share on other sites More sharing options...
Question
bonanova
For real numbers x, absolute value and maximum have the following meanings:
Abs(x) is just the value of x without regard for sign: Abs(-3.3) = Abs(3.3) = 3.3
Max(x1, x2) is the larger of x1 and x2: Max(-9.2, 5.7) = Max(4.2, 5.7) = 5.7
- Just for fun, express Abs in terms of Max.
- For a bit of a challenge, express Max in terms of Abs.
Have fun.Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.