Code Monkey home page Code Monkey logo

physics_plus's Introduction

gem 'physics_plus'

Evolving set for solving problems in physics

I will try every week to add new gem functionality.

plans to implement functions

  • Mechanics
  • Thermodynamics
  • Optics
  • Electrodynamics
  • and others

Installation

GEMFILE:

gem 'physics_plus'

INSTALL:

gem install physics_plus

EXAMPLE (List fundamental constants):

require 'physics_plus' => true

puts PhysicsPlus::Constants.List_fundamental_constants

Speed_light_vacuum => 299792458                           (Speed of light)
Gravitational_constant => 6.674484e-11                    (Gravitational constant)
Planck_constant => 6.62607015e-34                         (Constant Plank)
Reduced_Planck_constant => 1.0545717999999998e-34         (Dirac constant)
Elementary_charge => 1.6021766340000001e-19               (Elementary charge)
Boltzmanns_constant => 1.380649e-23                       (Boltzmann's constant)

to others

puts PhysicsPlus::Constants.List_planck_quantities
puts PhysicsPlus::Constants.List_different_systems_quantities
puts PhysicsPlus::Constants.List_electromagnetic_constants

PhysicsPlus::Constants::C => 299792458
PhysicsPlus::Constants::Speed_light_vacuum => 299792458

PhysicsPlus::Constants::G => 6.02214076e+23
PhysicsPlus::Constants::Gravitational_constant => 6.02214076e+23

PhysicsPlus::Optics.absolute_refractive_index(200_000_000) => 1.49896229
PhysicsPlus::Optics.power_lens(2) => 0.5

PhysicsPlus::ElementsTheoryRelativity.inertial_system_length(1.5, 200_000_000) => 1.1174144036800955
PhysicsPlus::ElementsTheoryRelativity.inertial_system_time(60, 200_000_000) => 80.54308205048527

PhysicsPlus::Quantums.equivalence_of_mass_and_energy(0.0000000001) => 8987551.787368177

License

MIT

Free Software, Hell Yeah!

physics_plus's People

Contributors

alexvikpast avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.