[prev in list] [next in list] [prev in thread] [next in thread]
List: kstars-devel
Subject: Re: [Kstars-devel] branches/kstars/summer/kdeedu/kstars/kstars
From: Jason Harris <kstars () 30doradus ! org>
Date: 2008-07-11 17:15:45
Message-ID: 51020E08-9CFD-4F97-96C7-647E10BB3105 () 30doradus ! org
[Download RAW message or body]
Hi Akarsh,
On Jul 11, 2008, at 10:10 AM, Akarsh Simha wrote:
> + KSNumbers num( 2000.0 * 365.0 ); // Some estimate, doesn't
> matter.
> + long double jy;
> + for( jy = 2000.0; jy <= 12000.0; jy += 500.0 ) {
> + num.updateValues( jy * 365.238 );
It's still not right because JD=1 does not correspond to Jan 1, year
1. So JD=2000*365 is not the year 2000. You can use J2000, which is
#defined to the JD of 1/1/2000.
KSNumbers( J2000 );
long double jy; //jy is years since 2000
for ( jy=0.0; jy<10000.0; jy += 500.0 ) {
num.updateValues( J2000 + jy*365.238 );
_______________________________________________
Kstars-devel mailing list
Kstars-devel@kde.org
https://mail.kde.org/mailman/listinfo/kstars-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic