Skip to content

SE_TRUE_NODE returns different values on chrome and windows #13

Open
@ynvgib

Description

@ynvgib

I am using these functions in the code to return the SUN and TRUE_NODE (north node):

CoordinatesWithSpeed posSun, posNorthnode;
posSun = Sweph.swe_calc_ut(jd, HeavenlyBody.SE_SUN, SwephFlag.SEFLG_SWIEPH);
posNorthnode = Sweph.swe_calc_ut(jd, HeavenlyBody.SE_TRUE_NODE, SwephFlag.SEFLG_SWIEPH);
double printNorthNode = posNorthnode.longitude;
double printSun = posSun.longitude;
print ("Sun: $printSun");
print ("North Node is: $printNorthNode");

I am using this ephemeris:

await Sweph.init(epheAssets: [
    "packages/sweph/assets/ephe/seas_18.se1",
  ]);

There is a CLEAR DIFFERENCE in the TRUE_NODE, but also a slight one in the SUN.

these are the printed times and data:

===
EXAMPLE 1:
CHROME:

time is 2024-01-16 07:30:00.000
jd time is 2460325.8125
Sun: 295.6463757021934
North Node is: 19.581430913105162

WINDOWS:

flutter: time is 2024-01-16 07:30:00.000
flutter: jd time is 2460325.8125
flutter: Sun: 295.6463757021932
flutter: North Node is: 19.582942888102373

==============
EX.2
CHROME:

time is 1983-10-03 13:15:00.000
jd time is 2445611.0520833335
Sun: 189.75635745500242
North Node is: 78.61301401943668

WINDOWS:

flutter: time is 1983-10-03 13:15:00.000
flutter: jd time is 2445611.0520833335
flutter: Sun: 189.75635745500242
flutter: North Node is: 78.61875087620729

Ex. 3

CHROME:
time is 1978-05-21 00:30:00.000
jd time is 2443649.5208333335
Sun: 59.61371667811282
North Node is: 184.55327434949876

WINDOWS:
flutter: time is 1978-05-21 00:30:00.000
flutter: jd time is 2443649.5208333335
flutter: Sun: 59.61371667811284
flutter: North Node is: 184.54967016401204

=====

I am using Android Studio Flamingo | 2022.2.1 Patch 2
and flutter:
PS C:\Users\val\projects\flutter\finallyicanlearn> flutter --version
Flutter 3.16.0-10.0.pre • channel master • https://github.com/flutter/flutter.git
Framework • revision c0d19ca561 (3 months ago) • 2023-10-11 23:33:07 -0400
Engine • revision d00fabf0b9
Tools • Dart 3.3.0 (build 3.3.0-14.0.dev) • DevTools 2.28.1

SWEPH: sweph 2.10.3+16

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions