physicx 0.0.1134 → 0.0.1135

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/constants.rb +3 -0
  3. data/lib/law.rb +4 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4da8fa4c350eedc46ae2931c7840ddd9079c84439eef9c1d8461457dfb1e11a
4
- data.tar.gz: 0757046a118690ebce61df9c114a91291fa15911a497c70c07cd1970a90e44e3
3
+ metadata.gz: fcfda37e59f5f2f52df74b832848eaac3bb882db5deb31813b375dd56c011209
4
+ data.tar.gz: b4547aa339b8cda29cba48c875315c5923ef902e5f07b204c17aa330d429c55a
5
5
  SHA512:
6
- metadata.gz: f49452eb4e3003004b14196fc67e8dd8d7712956d48942e98bcd7065d1542d34ff01173bb0cbe1dd9a04d6a461a20e3b44eb010db9c91c55d059e09be7b56c47
7
- data.tar.gz: 29e68f328eb30a4a345a205846da4f4b0d30599a9922027ff6f108ebe82c7f6920e25ce31a768168b7286d24c5527c76eb6dfe16a39f741df1a358c0c665fadd
6
+ metadata.gz: c821fc69884b6897248b901e5b355f109cbedae9b7e1fcfd14fa779afa8ee8c7a0c0320c6655cb28239ccf4a5774f7608168107d70e97e19cdacfc83ae349386
7
+ data.tar.gz: 0b239d3a1f82c8dd8d7e721f8c8194acb78aaafc20d450628a5a14bf3c48638a2d7d5f024976d01abc875db08c90f1cddfd3ab035250049fb632366ee45c099c
data/lib/constants.rb CHANGED
@@ -2,10 +2,12 @@ module Constants
2
2
  Speedoflight = 299792458
3
3
  G = 6.674e-11
4
4
  N_A = 6.02214076e23
5
+ K_CD = 683
5
6
  E = 1.602176634e-19
6
7
  M_E = 9.1093837015E-31
7
8
  H = 6.62607015E-34
8
9
  R = 8.31446261815324
10
+ B = 2.897771955
9
11
  K_B = R/N_A
10
12
  Rh = H/(2 * Math::PI)
11
13
  U0 = (4 * Math::PI * 1e-7)
@@ -18,6 +20,7 @@ module Constants
18
20
  Alpha = E**2/(2 * Epsilon0 * (H * Speedoflight))
19
21
  R_inf = (M_E * (E ** 4)) / (8 * (Epsilon0 ** 2) * (H ** 3) * Speedoflight)
20
22
  H_0 = 66.6
23
+ Sigma = (2 * Math::PI**5 * K_B**4)/(15 * H**3 * Speedoflight**2)
21
24
  end
22
25
 
23
26
 
data/lib/law.rb CHANGED
@@ -1,7 +1,9 @@
1
1
  require "constants.rb"
2
2
 
3
3
  module Law
4
- def Hubble(d)
5
- Constants::H_0 * d
4
+ def Hubble(D)
5
+ Constants::H_0 * D
6
6
  end
7
+ module_function :Hubble
7
8
  end
9
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: physicx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1134
4
+ version: 0.0.1135
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mad99hi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-02 00:00:00.000000000 Z
11
+ date: 2023-08-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: mathematics and physics library
14
14
  email: mad99himad99hi@gmail.com