MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB技术文章 (https://www.labfans.com/bbs/forumdisplay.php?f=25)
-   -   Easter Sunday and April Fools - Cleve Moler on Mathematics and Computing (https://www.labfans.com/bbs/showthread.php?t=27100)

poster 2021-04-24 17:42

Easter Sunday and April Fools - Cleve Moler on Mathematics and Computing
 
[IMG]http://blogs.mathworks.com/cleve/files/easter_blog_01.png[/IMG]
What do the years 2018, 2029 and 2040 have in common? They are the only years in the 21st century when Easter Sunday occurs on April Fools Day.

Contents[URL="https://www.labfans.com/bbs/admincp/#cd3f4165-3778-436f-b2c2-acbd99f83118"]Fool Meets Bunny[/URL][URL="https://www.labfans.com/bbs/admincp/#1d4af8fb-bf2d-464a-ba7f-04681f0a5b03"]21st Century[/URL][URL="https://www.labfans.com/bbs/admincp/#4ed98ef1-2cad-4797-8c08-4c56dc40d99a"]Easter Day[/URL][URL="https://www.labfans.com/bbs/admincp/#5766f6de-9662-402c-8e97-e70ace91e019"]Easter function[/URL]Fool Meets Bunny for y = 1:100 april_first = datenum(y+2000,4,1); delta(y) = easter(y+2000) - april_first; end years = 2000 + find(delta == 0)years = 2018 2029 204021st CenturyThis plot shows the April Fools Easter Sundays in the 21st century and also shows that Easter can occur on any date between March 22 between April 25.

p = plot(delta,'.'); annotate(p,delta) Easter Day>

[IMG]http://feeds.feedburner.com/~r/mathworks/moler/~4/m5H-NfYDPOg[/IMG]

[url=http://feedproxy.google.com/~r/mathworks/moler/~3/m5H-NfYDPOg/]More...[/url]


所有时间均为北京时间。现在的时间是 06:45

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.