Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Show your biorhythms
| ResourceFunction["Biorhythm"][] shows your biorhythms for the current month. | |
| ResourceFunction["Biorhythm"][spec] shows your biorhythms for the date interval specified by spec. | 
| "Birthday" | FromUnixTime[0] | your birthday | 
| Epilog | Automatic | primitives rendered after the main plot | 
| GridLines | Automatic | grid lines to draw | 
Show the biorhythms of someone born on July 3, 1962 for the current month:
| In[1]:= | ![ResourceFunction["Biorhythm"][
 "Birthday" -> DateObject[{1962, 7, 3}, "Day"]]](https://www.wolframcloud.com/obj/resourcesystem/images/03c/03c8d143-d1d0-4c3a-9d88-04cca3310a08/4126408a9351fb7f.png) | 
| Out[1]= |  | 
Dates can also be entered as a list, or any other format accepted by DateObject:
| In[2]:= | ![ResourceFunction["Biorhythm"]["Birthday" -> {1962, 7, 3}]](https://www.wolframcloud.com/obj/resourcesystem/images/03c/03c8d143-d1d0-4c3a-9d88-04cca3310a08/4ecc7dac607598b2.png) | 
| Out[1]= |  | 
Show the biorhythms between a given set of dates:
| In[3]:= | ![ResourceFunction[
 "Biorhythm"][{DateObject[{2021, 12, 1}, "Day"], DateObject[{2021, 12, 31}, "Day"]}, "Birthday" -> DateObject[{1962, 7, 3}, "Day"]]](https://www.wolframcloud.com/obj/resourcesystem/images/03c/03c8d143-d1d0-4c3a-9d88-04cca3310a08/0a7f532716c3bad7.png) | 
| Out[3]= |  | 
Show the biorhythms around a month after the given birth date:
| In[4]:= | ![ResourceFunction[
 "Biorhythm"][{DatePlus[DateObject[{1962, 7, 3}, "Day"], Quantity[-1, "Days"]], DatePlus[DateObject[{1962, 7, 3}, "Day"], Quantity[30, "Days"]]}, "Birthday" -> DateObject[{1962, 7, 3}, "Day"]]](https://www.wolframcloud.com/obj/resourcesystem/images/03c/03c8d143-d1d0-4c3a-9d88-04cca3310a08/6f2aba8f36018f45.png) | 
| Out[4]= |  | 
Set your birthday before evaluating Biorhythm:
| In[5]:= | ![SetOptions[ResourceFunction["Biorhythm"], "Birthday" -> DateObject[{1959, 8, 29}, "Day"]];](https://www.wolframcloud.com/obj/resourcesystem/images/03c/03c8d143-d1d0-4c3a-9d88-04cca3310a08/5b2de5cf400369d8.png) | 
Biorhythms for the current month:
| In[6]:= | ![ResourceFunction["Biorhythm"][]](https://www.wolframcloud.com/obj/resourcesystem/images/03c/03c8d143-d1d0-4c3a-9d88-04cca3310a08/0c27a6f4cef4e2cb.png) | 
| Out[6]= |  | 
Biorhythms for a specified date interval:
| In[7]:= | ![ResourceFunction["Biorhythm"][{{1988, 6, 1}, {1988, 6, 30}}]](https://www.wolframcloud.com/obj/resourcesystem/images/03c/03c8d143-d1d0-4c3a-9d88-04cca3310a08/7f608f00d727f2e3.png) | 
| Out[7]= |  | 
An equivalent specification:
| In[8]:= | ![ResourceFunction["Biorhythm"][
 DateInterval[{DateObject[{1988, 6, 1}, "Day"], DateObject[{1988, 6, 30}, "Day"]}]]](https://www.wolframcloud.com/obj/resourcesystem/images/03c/03c8d143-d1d0-4c3a-9d88-04cca3310a08/1dcafd38114eadc0.png) | 
| Out[8]= |  | 
Evaluate the overall period of the three biorhythms:
| In[9]:= | ![period = Quantity[LCM[23, 28, 33], "Days"]](https://www.wolframcloud.com/obj/resourcesystem/images/03c/03c8d143-d1d0-4c3a-9d88-04cca3310a08/27ae52c986ffb6f7.png) | 
| Out[9]= |  | 
That is, after 21252 days, all three of your biorhythms start again at 0:
| In[10]:= | ![SetOptions[ResourceFunction["Biorhythm"], "Birthday" -> DateObject[{1959, 8, 29}, "Day"]];](https://www.wolframcloud.com/obj/resourcesystem/images/03c/03c8d143-d1d0-4c3a-9d88-04cca3310a08/403f9d4f31f1bd26.png) | 
| In[11]:= | ![ResourceFunction[
 "Biorhythm"][{DatePlus[DateObject[{1959, 8, 29}, "Day"], period - Quantity[2, "Days"]], DatePlus[DateObject[{1959, 8, 29}, "Day"], period + Quantity[2, "Days"]]}]](https://www.wolframcloud.com/obj/resourcesystem/images/03c/03c8d143-d1d0-4c3a-9d88-04cca3310a08/2040172d75722901.png) | 
| Out[11]= |  | 
Biorhythm does not evaluate for date intervals before your birth date:
| In[12]:= | ![ResourceFunction["Biorhythm"][{{1962, 6, 25}, {1962, 7, 2}}, "Birthday" -> DateObject[{1962, 7, 3}, "Day"]]](https://www.wolframcloud.com/obj/resourcesystem/images/03c/03c8d143-d1d0-4c3a-9d88-04cca3310a08/11a49e6e7c186206.png) | 
| Out[12]= |  | 
This work is licensed under a Creative Commons Attribution 4.0 International License