当前位置:网站首页>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
边栏推荐
- Record the visual shock of the Winter Olympics and the introduction of the screen 2
- Verilog -- state machine coding method
- The browser cannot access Baidu
- Introduction of air gap, etc
- UEFI development learning 4 - getting to know variable services
- Semiconductor devices (I) PN junction
- Shape template matching based on Halcon learning [v] find_ cocoa_ packages_ max_ deformation. Hdev routine
- 1089 insert or merge, including test point 5
- Shape template matching based on Halcon learning [vi] find_ mirror_ dies. Hdev routine
- OLED 0.96 inch test
猜你喜欢
Ads learning record (lna_atf54143)
Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world
[trio basic from introduction to mastery tutorial XIV] trio realizes unit axis multi-color code capture
Programming knowledge -- basis of C language
Screen record of the opening ceremony of the Beijing winter olympics 2
Cadence simulation encountered "input.scs": can not open input file change path problem
C language enhancement -- pointer
My-basic application 2: my-basic installation and operation
Acwing - the collection of pet elves - (multidimensional 01 Backpack + positive and reverse order + two forms of DP for the answer)
Improve lighting C program
随机推荐
About yolov3, conduct map test directly
Sql Server的存储过程详解
Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world
Matlab2018b problem solving when installing embedded coder support package for stmicroelectronic
Factors affecting the quality of slip rings in production
找不到实时聊天软件?给你推荐电商企业都在用的!
UEFI development learning 4 - getting to know variable services
Sql Server的存儲過程詳解
C language enhancement -- pointer
Connection mode - bridge and net
Semiconductor devices (III) FET
C WinForm [help interface - send email] - practice five
Reasons for rapid wear of conductive slip rings
Consul安装
Measurement fitting based on Halcon learning [i] fuse Hdev routine
Arduino uses nrf24l01+ communication
Soem EtherCAT source code analysis II (list of known configuration information)
2021-10-28
Global and Chinese markets for flexible endoscopic lithotripsy devices 2022-2028: Research Report on technology, participants, trends, market size and share
Bootloader implementation of PIC MCU