eph_jcg 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/eph_jcg/ephemeris.rb +2 -2
- data/lib/eph_jcg/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a214b533e7f0649aac502afeff00d1cf75007005
|
4
|
+
data.tar.gz: 34f544eb989e2190d939af9e1afb7bcd08a13231
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 900ac0a02822b8d089f071f80b68946d8d585c7627cd1dccd44978d5b316d46db53e38af02831781df48015b16694f47ba03077a9bffded8aa1cfd7e820f6ada
|
7
|
+
data.tar.gz: ea85c4e817c1191e71bee2c7b4111c7a4ba847a072daca44614a1a6e462eada07e3049ac6a9bbd5c14dc3f54e1abff4d653685015904d1ec2b2797909507b02c
|
data/lib/eph_jcg/ephemeris.rb
CHANGED
@@ -317,8 +317,8 @@ module EphJcg
|
|
317
317
|
def calc_theta(a, b, t)
|
318
318
|
b = t if b < t # 年末のΔT秒分も計算可能とするための応急処置
|
319
319
|
theta = (2 * t - (a + b)) / (b - a).to_f
|
320
|
-
|
321
|
-
|
320
|
+
theta = 1.0 if theta > 1.0
|
321
|
+
theta = -1.0 if theta < -1.0
|
322
322
|
return Math.acos(theta) * 180 / PI
|
323
323
|
end
|
324
324
|
|
data/lib/eph_jcg/version.rb
CHANGED