登录论坛

查看完整版本 : Easter Sunday and April Fools - Cleve Moler on Mathematics and Computing


poster
2021-04-24, 17:42
http://blogs.mathworks.com/cleve/files/easter_blog_01.png
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.

ContentsFool Meets Bunny (https://www.labfans.com/bbs/admincp/#cd3f4165-3778-436f-b2c2-acbd99f83118)21st Century (https://www.labfans.com/bbs/admincp/#1d4af8fb-bf2d-464a-ba7f-04681f0a5b03)Easter Day (https://www.labfans.com/bbs/admincp/#4ed98ef1-2cad-4797-8c08-4c56dc40d99a)Easter function (https://www.labfans.com/bbs/admincp/#5766f6de-9662-402c-8e97-e70ace91e019)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>

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

More... (http://feedproxy.google.com/~r/mathworks/moler/~3/m5H-NfYDPOg/)