BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Painting & calculating bio-rythms?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Nils Haeck
Guest





PostPosted: Wed Sep 01, 2004 11:47 pm    Post subject: Re: Painting & calculating bio-rythms? Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.