physicx 0.0.112 → 0.0.115

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b3fc86fbc24b9a9b46603025e31ade16f1cdf6115e3691b3b9b09245fb3db36
4
- data.tar.gz: f91ddd1c929857a6e684105c54b308decd2b7deccf05958900138e854c99a7d3
3
+ metadata.gz: 373fd911a569a24fe51376b0444447855762a53b7070e146e34ee69ede6ad31d
4
+ data.tar.gz: 305465d068b6365ee3338b9455888ebca61fbc9bcd408e2c8e11216e024c898e
5
5
  SHA512:
6
- metadata.gz: 7d576af5be3dcc64e8c6e8d2790c930859f3164dce1037e77aa40505eabe2432b964857e916e57fd1318e8d7025d6aff4b55c5e2dc76f4fc9ba37b931c9cc787
7
- data.tar.gz: 695ebe1d2fe4b49ee6dd68450ec674ad6e0f323109a2ad149c5cb1bdc2bdc761655828207b425136cc2e8c13bc1f11a3ac6dfe1c634eb4f4e147dd02533c3425
6
+ metadata.gz: 04be851d12da0586dd7c78055e6a30b0b3efbf02dd9feba16b5aa1c8e137ad1fa87a3dfe50a5777f074bff0bb7638ec41a99d5ff97248b76eca91349769947fb
7
+ data.tar.gz: 0e0666ba3eb4d68a525f1c31658e1321af295fe38b4bad3733ba33f6f7ae034e8783912c626248953ddf7cf6ac61624ba5969ce19f407e4c1051d78ab98761e1
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,7 +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
21
-
23
+ Sigma = (2 * Math::PI**5 * K_B**4)/(15 * H**3 * Speedoflight**2)
22
24
  end
23
25
 
24
26
 
data/lib/law.rb ADDED
@@ -0,0 +1,9 @@
1
+ require "constants.rb"
2
+
3
+ module Law
4
+ def Hubble(D)
5
+ Constants::H_0 * D
6
+ end
7
+ module_function :Hubble
8
+ end
9
+
data/lib/physicX.rb CHANGED
@@ -1,3 +1,4 @@
1
1
  module PhysicX
2
2
  require "constants.rb"
3
+ require "law.rb"
3
4
  end
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.112
4
+ version: 0.0.115
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mad99hi
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-23 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
@@ -17,12 +17,13 @@ extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
19
  - lib/constants.rb
20
+ - lib/law.rb
20
21
  - lib/physicX.rb
21
22
  homepage: https://rubygems.org/gems/physicX
22
23
  licenses:
23
24
  - GPL-3.0
24
25
  metadata: {}
25
- post_install_message:
26
+ post_install_message:
26
27
  rdoc_options: []
27
28
  require_paths:
28
29
  - lib
@@ -37,8 +38,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
37
38
  - !ruby/object:Gem::Version
38
39
  version: '0'
39
40
  requirements: []
40
- rubygems_version: 3.3.25
41
- signing_key:
41
+ rubygems_version: 3.3.5
42
+ signing_key:
42
43
  specification_version: 4
43
44
  summary: PhysicX
44
45
  test_files: []