The king's pc egg predictions today range from simple to advanced, and share with you a wave of how to write algorithms in the 28pc predictions of the great god, which, based on the experience of the his majesty's predictions, basically come from two points, one from the discussion forums where we can share with our friends, and the other from some of the folk egg pals who make their own calculations。
Today, let's talk about how the algorithm found on the internet is going to be published in the 28th great god, and according to the egg friends, the rental algorithm has already been used, because one of the algorithms is 30 days in the 28th, it's possible to look at it and pay for it
Well, to get the algorithm straight, you have to understand the rules
The core of the pc egg algorithm is to replace numbers with letters and, simply, to add or subtract. The royal pc egg prognosis shows you what the letters in the 28th are, but you can see from the above figure, and we can see what the special letters mean。
Algorithmic preliminary awareness
After looking at this figure above, the letters are by analogy, for example: the ninth of the 835387 period is replaced with the h2, and the thirteenth of the period is the h4。
The letters can be used in a-y, and z has a special meaning in the great 28, which is the result of the previous line。
See? It's the same with and without z, because z is the result of the previous line
"single two."
Let's look at the other scenario, the one-on-one reverse in the 28th. What's one-on-one reverse? When will it be used? You see, for example, a light algorithm online, and if you want him to have a high hit rate, you use the reverse. And, of course, the opposite is true:
The above figure, on the left, is not one-two-verse, and on the right is one-two-verse; so there's a clear point, one on the left, the sheet, no problem, but when it's one-two, it's two, of course. The opposite of size is also true. Remember, if you're going to take the opposite, here's the official rule
Result = > resize >
And the result is both
After looking at the above, i'm sure it's no longer a problem to write a simple algorithm, to see an example of the algorithm of the emperor's prediction, to help you understand and write more quickly。
The simple thing above is that you understand. Let's look at some of the higher ones, like trigonometric functions, logarithmic functions, sin, cos, tan, log, and so on. Let's start with a simple interpretation of the official rules。
High-level algorithm writing
Seeing this may have been a vexation, as the emperor predicted, but we can see a lot from the example
Look at the picture above. The queen's pc egg prediction shows you, first, that z = calculates (a2+b4) the end of the line, and this sin (z,1, 3) means the sum of three decimal points after the result in the previous line。
The same is true of several other functions. 1 in sin(z,1,3) is the value after the decimal point and, if sin(z,0,3), the first three decimal points。
Isn't that amazing
If you look at the above article, and when you write algorithms, there's something you don't understand, and you're welcome to leave a message below. This is the king's pc predicting the difficulties you're having in writing algorithms based on the difficulties that the old irons encounter in writing?
We have a problem




