- #1

- 685

- 4

https://en.wikipedia.org/wiki/Ramp_function

But is definition is only for 2 numbers, how would be the definition for 3 numbers?

Also, which is the definition of minimum function?

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Thread starter Jhenrique
- Start date

- #1

- 685

- 4

https://en.wikipedia.org/wiki/Ramp_function

But is definition is only for 2 numbers, how would be the definition for 3 numbers?

Also, which is the definition of minimum function?

- #2

mathman

Science Advisor

- 7,956

- 498

min(a,b) = (a+b-|a-b|)/2.

I can't see anything analogous for 3 numbers.

I can't see anything analogous for 3 numbers.

- #3

Mark44

Mentor

- 35,138

- 6,888

Maybe you could figure one out.I found in the wiki a definition for the max of 2 numbers:

https://en.wikipedia.org/wiki/Ramp_function

But is definition is only for 2 numbers, how would be the definition for 3 numbers?

In any case, being able to calculate the maximum of two numbers is much more important than being able to calculate the maximum of three numbers. You can do this by picking any two of them, and calculating which of the two is larger. Then compare that number with the third number. Whichever number is larger is the maximum of the three numbers. You can extend this idea to four, five, ..., n numbers.

$$Min(a, b) = \frac{a + b - |a - b|}{2}$$Also, which is the definition of minimum function?

The formula for the maximum of two numbers is straightforward if you look at the geometry.

$$Max(a, b) = \frac{a + b + |a - b|}{2} = \frac{a + b}{2} + \frac{|a - b|}{2}$$

The first fraction on the right is the number that is midway between the points a and b. The second fraction is half the distance between the two points. From the midway point, if you add half the distance between the two points, you end up at whichever point is on the right; i.e., the larger number.

In the formula I wrote for the minimum, the only difference is that we are subtracting half the distance between the two points, which gets us to the point on the left - the smaller number.

- #4

Curious3141

Homework Helper

- 2,850

- 87

I found in the wiki a definition for the max of 2 numbers:

https://en.wikipedia.org/wiki/Ramp_function

But is definition is only for 2 numbers, how would be the definition for 3 numbers?

Can't you recurse? max(a,b,c) = max(max(a,b),c).

- #5

- 685

- 4

Those formulas not says too when a complex number is greater another?

- #6

Curious3141

Homework Helper

- 2,850

- 87

Those formulas not says too when a complex number is greater another?

Complex numbers are not orderable. It is meaningless to speak of one complex number being greater than or less than another.

You can only say that about their magnitudes or arguments (within a defined range of angle measure).

- #7

jbriggs444

Science Advisor

Homework Helper

- 9,979

- 4,572

Complex numbers are not orderable. It is meaningless to speak of one complex number being greater than or less than another.

Note that when we say that the complex numbers are not orderable, it is not that one cannot come up with a sorting order for them. It is that one cannot come up with a sorting order that is consistent with the way the operations of addition and multiplication are expected to work with an order.

In particular, you want to be able to say that if a > 0 and b > 0 then ab > 0. But if you take a=b=i then ab = -1. That then requires that -1 > 0.

In other words, the complex numbers do not form an "ordered field". http://en.wikipedia.org/wiki/Ordered_field

Last edited:

- #8

Curious3141

Homework Helper

- 2,850

- 87

Note that when we say that the complex numbers are not orderable, it is not that one cannot come up with a sorting order for them. It is that one cannot come up with a sorting order that is consistent with the way the operations of addition and multiplication are expected to work with an order.

In particular, you want to be able to say that if a > 0 and b > 0 then ab > 0. But if you take a=b=i then ab = -1. That then requires that -1 > 0.

In other words, the complex numbers do not form an "ordered field". http://en.wikipedia.org/wiki/Ordered_field

I just saw this. I'm aware of the concept of an ordered field, I just didn't want to overcomplicate things when it's not really relevant here.

Share: