Current location - Training Enrollment Network - Mathematics courses - High school mathematics algorithm
High school mathematics algorithm
If you want computer algorithms, you can refer to many things, such as bubble sorting, quick sorting, grouping sorting and so on. , and you can check the relevant books of the algorithm.

If you mean to express the maximum number by adding, subtracting, multiplying and dividing, exponential logarithm, taking absolute value, etc. You can consider the following points.

First of all, in the case of two numbers a 1 and a2, it is easy to verify that (a 1+a2+|a 1-a2|)/2 is the larger of these two numbers.

For the case of three numbers a 1, a2 and a3, T = (a 1+A2+| A1-A2 |)/2 is the larger number of A1and A2, then we can find out that the larger number of T and a3 is (T+A3) by the method just now.

In this way, the largest number of 10 can be written recursively. Of course, the result obtained in this way is asymmetric in form with respect to the number 10. For the case of not less than three numbers, I can't think of a more symmetrical formula at present.