physicx 0.0.1

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 +7 -0
  2. data/lib/constants.rb +23 -0
  3. data/lib/physicX.rb +3 -0
  4. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 16cf4c1542a774510af15f916e91b81ca36d24e4dadb2ac12680af6e07347d38
4
+ data.tar.gz: b97216a2379d1a600d380f27b0138430b0ea2d7c90fc5ba566cfc6cc5227b56b
5
+ SHA512:
6
+ metadata.gz: 1604528db41b93347624b96ec16c5ea5c2f22ef7b83cc16589dc6978ea1d1d428f1d122cdc7e43d7eac2b68b951b8c0181b4715bf9f4c45cfbf8f5d4384743cb
7
+ data.tar.gz: 44b7f091e6bd2c112025cdd573e7c1c66991b0630485c8058c5f00214fedd4e1b430ac090b99c7884a6b61c397a33eb69db63e55fc9a3d80c648b93e872bd433
data/lib/constants.rb ADDED
@@ -0,0 +1,23 @@
1
+ module Constants
2
+ Speedoflight = 299792458
3
+ G = 6.674e-11
4
+ N_A = 6.02214076e23
5
+ E = 1.602176634e-19
6
+ M_E = 9.1093837015E-31
7
+ H = 6.62607015E-34
8
+ R = 8.31446261815324
9
+ K_B = R/N_A
10
+ Rh = H/(2 * Math::PI)
11
+ U0 = (4 * Math::PI * 1e-7)
12
+ Epsilon0 = 1 / ((Speedoflight ** 2) * U0)
13
+ K = 1/(4 * Math::PI * Epsilon0)
14
+ F = E * N_A
15
+ K_J = (2 * E)/H
16
+ Kaka = (8 * Math::PI * G)/Speedoflight ** 4
17
+ R_K = H/E**2
18
+ Alpha = E**2/(2 * Epsilon0 * (H * Speedoflight))
19
+ R_inf = (M_E * (E ** 4)) / (8 * (Epsilon0 ** 2) * (H ** 3) * Speedoflight)
20
+
21
+ end
22
+
23
+
data/lib/physicX.rb ADDED
@@ -0,0 +1,3 @@
1
+ module PhysicX
2
+ require "constants.rb"
3
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: physicx
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Mad99hi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-05-17 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Constants Physics Fundamentals
14
+ email: mad99himad99hi@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/constants.rb
20
+ - lib/physicX.rb
21
+ homepage: https://rubygems.org/gems/physicX
22
+ licenses:
23
+ - MIT
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubygems_version: 3.3.5
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: PhysicX
44
+ test_files: []