Programming has different meanings for different people:
For ordinary programmers, it is the output of codes and runnable programs (mathematics is not particularly important here, what is more important is the understanding, mastery and design patterns of various frameworks, etc. ).
For algorithm engineer, mathematics is very important (such as machine learning, cryptography, computer graphics, etc. ).
The function mentioned in the title is actually an encapsulated form to achieve the goal, while recursion only calls itself in the function (of course, termination conditions are needed).
Extended data:
Three main characteristics of computer
1, fast operation speed: the internal circuit of the computer can complete various arithmetic operations at high speed and accurately. At present, the computing speed of computer system has reached trillions of operations per second, and the microcomputer can also reach 100 million operations per second, thus solving a large number of complex scientific computing problems. For example, it may take years or even decades to calculate satellite orbits, dams and 24-hour weather, but in modern times, it can be done in a few minutes with a computer.
2. High calculation accuracy: The development of science and technology, especially the development of cutting-edge science and technology, requires high calculation accuracy. The missile controlled by computer can accurately hit the intended target, which can not be separated from the accurate calculation of the computer. The average computer can have a dozen or even dozens of bits (binary), and its calculation accuracy can range from a few thousandths to one millionth, which is unmatched by any calculation tool.
3. Strong logical operation ability: the computer can not only calculate accurately, but also have logical operation function, which can compare and judge information. The computer can participate in storing operation data, programs, intermediate results and final results, and can automatically execute the next instruction according to the judgment result for users to call at any time.