tag:blogger.com,1999:blog-37872616.post3558289997406051215..comments2024-03-29T01:03:31.291+08:00Comments on BULLy the BEAR: Algorithm to find the Chinese horoscope sign of any yearla papillionhttp://www.blogger.com/profile/01372278083694506953noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-37872616.post-29157985181938321992024-02-10T17:25:43.428+08:002024-02-10T17:25:43.428+08:00Since I think the Chinese zodiac signs are calcula...Since I think the Chinese zodiac signs are calculated starting from the year 1900 & we see that <i>1900 % 12</i> leaves a remainder of <i>4</i>, so we need to subtract it :) <br /><br />and <i>mod 12</i> brings any number <i>between 0 and 11 (inclusive)</i>, so we can either use 0-indexing on the zodiac animals or just add 1 to your result after subtracting the 4 giving us the required answer.Keshav Khttps://www.blogger.com/profile/11045759186359918069noreply@blogger.comtag:blogger.com,1999:blog-37872616.post-29859363219412699652022-05-06T00:18:43.160+08:002022-05-06T00:18:43.160+08:00Why did you subtract with 4, and not with 5 or any...Why did you subtract with 4, and not with 5 or any other number? I am aware that algorithm works, but why 4. I just do not understand.<br /><br />Thank you in advance.<br /><br />Cheers!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-37872616.post-39908264788475088682015-03-25T00:43:36.526+08:002015-03-25T00:43:36.526+08:00Let me just tidy that a bit regarding the artific...Let me just tidy that a bit regarding the artificial plants to clarify it.<br /><br />If we cross fertilize an artificial plant with imaginary roots with another imaginary plant with artificial roots (because these plants are conjugate of each other), the product will be a fruit with seeds that will give rise to a real plant. It’s not very rational, isn’t it? ;)<br />la papillionhttps://www.blogger.com/profile/01372278083694506953noreply@blogger.comtag:blogger.com,1999:blog-37872616.post-73889280870294988152015-03-24T22:49:06.685+08:002015-03-24T22:49:06.685+08:00Hi Rolf,
Oh, that will depend on the type of plan...Hi Rolf,<br /><br />Oh, that will depend on the type of plants - plastic or the living ones. <br /><br />For the living plants, it'll grow square roots. For the plastic artificial ones, the roots will be kind of complex because they can't really grow roots, so the roots will be kind of imaginary. <br /><br />However, if you place a pot of artificial roots, so they it will grow into artificial plants and thus acting like a conjugate of the artificial plants with imaginary roots. When both of these plants are placed side by side, the two plants become a real! <br /><br />Now how do you rationalise this interesting situation?la papillionhttps://www.blogger.com/profile/01372278083694506953noreply@blogger.comtag:blogger.com,1999:blog-37872616.post-26363111235323913792015-03-24T22:09:54.653+08:002015-03-24T22:09:54.653+08:00Hi LP,
I test you.
What happen to a plant in a ...Hi LP,<br /><br />I test you. <br /><br />What happen to a plant in a math class? <br /><br /><br />RolfRolf Sueyhttps://www.blogger.com/profile/10723925075715114650noreply@blogger.comtag:blogger.com,1999:blog-37872616.post-59657771823726071652015-03-24T11:59:36.658+08:002015-03-24T11:59:36.658+08:00Hi Richard,
Haha, I'm an engineer at heart :)...Hi Richard,<br /><br />Haha, I'm an engineer at heart :) I see problems and I try to solve them. This problem of trying to backcount chinese horoscope sign had been a personal problem for many years. I had a method of doing it but it's at best clumsy and not very easily done because it requires a lot of mental memory.<br /><br />This method solves my problem with relative ease. You see, we can do something we've never done before and that's an achievement by itself. AND we can also do something more efficiently than the last attempt. That's what I'm doing - improving my solution.<br /><br />You can see this as a mathematical/programming problem. But this post resonates with my philosophy in life - always improve, always upgrade, always learn new things. If at the end of the year when I look back at what I've done, I should resolutely say that this, <br /><br />"This year is better than the last"la papillionhttps://www.blogger.com/profile/01372278083694506953noreply@blogger.comtag:blogger.com,1999:blog-37872616.post-6199784469318737832015-03-24T08:54:19.601+08:002015-03-24T08:54:19.601+08:00LP : hmmmmm... I think you take this mathematic/sc...LP : hmmmmm... I think you take this mathematic/scientific stuff a bit too far for the commoner liao... hahahaha... but it shows that you a natural born practical mathematician... <br /><br /> Investopenlyhttps://www.blogger.com/profile/07785795437892877722noreply@blogger.com