当前位置:网站首页>Why is 1900 not a leap year
Why is 1900 not a leap year
2022-07-05 08:05:00 【Car chezi】
origin
See a paragraph C++ The program , To introduce logical operators , Let's judge whether a year is a leap year .
In short , If the end of a year is not 00, Then you can divide 4 It's a leap year ; If the end is 00, Then you can divide 400 It's a leap year .
I wondered , No 4 Is it a leap year ? since 1896 Year is a leap year , In another 4 Year is 1900 year ,1900 Why is it not a leap year ? In fact, this confusion occurred when I was in primary school .
principle
A year ( The earth revolves around the sun in a cycle ), Accurate to seconds ( Astronomical observation ) yes :
365 God 5 Hours 48 branch 45.5 second = 365.24219328703703703(703 The cycle of …) God
If 4 A leap in the year , The average year is :365+1/4=365.25 God
Every time 100 The year does not leap , The average year is :365+1/4-1/100 =365.24 God
Every time 400 A leap in the year :365+1/4-1/100+1/400 =365.2425 God
Every time 3200 The year does not leap :365+1/4-1/100+1/400-1/3200 =365.2421875 God
Every time 172800 Leap year :365+1/4-1/100+1/400-1/3200+1/172800 =365.24219328703703703(703 The cycle of …) God
Finally approaching the observation results , Therefore, there are various regulations for leap years , therefore 1900 Unfortunately, year was excluded from the status of leap year .
【End】
Reference material :https://www.zhihu.com/question/25388501/answer/433635665
边栏推荐
- 【论文阅读】2022年最新迁移学习综述笔注(Transferability in Deep Learning: A Survey)
- 【云原生 | 从零开始学Kubernetes】三、Kubernetes集群管理工具kubectl
- Shell script basic syntax
- The printer encountered an abnormal configuration problem 0x8007007e (win10)
- Global and Chinese market of quenching furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
- Gradle composite construction
- 1089 insert or merge, including test point 5
- After installing the new version of keil5 or upgrading the JLINK firmware, you will always be prompted about the firmware update
- Detailed explanation of pragma usage
- My-basic application 1: introduction to my-basic parser
猜你喜欢
Semiconductor devices (III) FET
Arduino uses nrf24l01+ communication
C language enhancement -- pointer
H264 (I) i/p/b frame gop/idr/ and other parameters
C WinForm [display real-time time in the status bar] - practical exercise 1
Shell脚本基本语法
如何将EasyCVR平台RTSP接入的设备数据迁移到EasyNVR中?
Hardware 1 -- relationship between gain and magnification
Factors affecting the quality of slip rings in production
Network communication model -- Network OSI tcp/ip layering
随机推荐
How to excavate and research ideas from the paper
solver. Learning notes of prototxt file parameters
Some thoughts on extracting perspectives from ealfa and Ebeta
C WinForm [exit application] - practice 3
Live555 RTSP audio and video streaming summary (II) modify RTSP server streaming URL address
matlab timeserise
The research found that the cross-border e-commerce customer service system has these five functions!
Solutions to compilation warnings in Quartus II
PMSM dead time compensation
Altium designer 19.1.18 - clear information generated by measuring distance
Step motor generates S-curve upper computer
Compilation warning solution sorting in Quartus II
Halcon's practice based on shape template matching [1]
Adaptive filter
How to define guid in AMI code
Drive LED -- GPIO control
Soem EtherCAT source code analysis I (data type definition)
Record the opening ceremony of Beijing Winter Olympics with display equipment
Altium designer 19.1.18 - hide the fly line of a network
Ads learning record (lna_atf54143)