Express maximum as an equation

  • Context: High School 
  • Thread starter Thread starter Crusty
  • Start date Start date
  • Tags Tags
    Maximum
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 6K views
Crusty
Messages
22
Reaction score
0
Given variables A and B
How is the maximum of A and B expressed as an equation?
Another way of saying it is how do you express MAXIMUM(A,B) as an equation?

Given variables A,B,C
MAXIMUM(A,B)=C
How do you solve for A?
 
Mathematics news on Phys.org
Crusty said:
Given variables A and B
How is the maximum of A and B expressed as an equation?
Another way of saying it is how do you express MAXIMUM(A,B) as an equation?

Given variables A,B,C
MAXIMUM(A,B)=C
How do you solve for A?

For part 1, you can write a piecewise function but it is just typing out what maximum means.

For the second part, you can't necessarily recover A from C. Suppose that B>A. Then A could be any value less than C.
 
Last edited:
How do you write it piecewise again?

For writing as an equation, I came up with this but it only works when the numbers aren't equal
a*((a-b)/abs(a-b)+1)/2+b*((b-a)/abs(b-a)+1)/2