Traditional Culture Encyclopedia - The 24 Solar Terms - How does js judge whether it is a pure cyclic decimal, and if so, how to judge the cyclic segment?
How does js judge whether it is a pure cyclic decimal, and if so, how to judge the cyclic segment?
1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.
If it can be written in the simplest fractional form, it is obviously a cycle.
If written in the simplest root form, the root number is greater than 1 and the root index is greater than 1, which is obviously not cyclic.
This judgment cannot be based on the calculation results, because the computing power of the computer is limited, not infinite. The output of the computer is decimal plus scientific counting method, which has a maximum output value and a minimum output value, so it can only be judged by the input results. Then the importer should know whether it is a cyclic decimal before entering it, so it is appropriate to establish a variable and remember whether this number is a cyclic decimal.
Even so, it doesn't help, it doesn't play any role, and it's impossible to determine whether all the calculation results will cycle according to this variable in the future calculation.
At least at present, computers can't compare with human brains. If the computer wins the human brain, human beings will be destroyed, and computers will rule the whole country, because at that time, computers can do everything, reproduce, produce and live, because human beings are also composed of substances and atomic molecules of the nucleus. Isn't it the same with computers? If anyone builds that computer, he will be guilty and he will destroy mankind.
- Related articles
- Write a poem about fallen leaves
- What solar term is yellow flower?
- Female 7 1 year Gregorian calendar 1.6 days counts as eight characters.
- Appreciate Tomb-Sweeping Day Qi Culture Wall
- 1966 What's the date of the 20th lunar month?
- Collected 34 greetings expressing happiness in the cold.
- Can the great cold in 2022 get used to my old house?
- What is fixed in the middle of the paper turntable?
- Is the seventh-generation Accord an electronic throttle?
- What do you mean, bow your head and fold?