 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Nils Haeck Guest
|
Posted: Wed Sep 01, 2004 11:47 pm Post subject: Re: Painting & calculating bio-rythms? |
|
|
It is something like
cos(Days_Since_Birth / 23 * 2 * pi)
- at least that's what I remember, cycles of 23 days.
The trick is that you must calculate the number of days since birth
*exactly* (so including leap years etc).
You can do all that grunt work for that yourself, or use Delphi function
EncodeDate twice (once for the time now, once for the birth date), then
substract the two to get the number of days passed.
Kind regards,
Nils
"Jon Lennart Aasenden" <post_nospam_nojunk (AT) hexmonks (DOT) net> wrote
| Quote: | Have anyone ever coded a routine for drawing bio rythms?
What is the formula?
Kind regards
Jon Lennart Aasenden
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|