Joules Logo

forthebadge

Gem Version

About

Joules is a library (gem) for providing simple Physics formulas in kinematics, forces, waves, electricity, and so much more. A selection of fundamental constants are also provided. It is written entirely in Ruby.

Note: For library download, please visit https://www.rubygems.org/gems/joules.

Library Compilation

gem build joules.gemspec

Library Installation

gem install joules-0.4.1.gem

Library Import

require 'joules'

Usage

Simple Method Call

Joules.gravitational_potential_energy(0.5, 6)

This would return 29.43.

Method Composition

Joules.power(Joules.work_done(40, 2.34), 4)

This would return 23.4.

Note: For documentation on usage of methods and constants, please visit http://www.rubydoc.info/gems/joules/.

Change Log

Version 0.0.1

  • Added Physics formulas in kinematics, mass, weight, density, forces, momentum, impulse, energy, work, power, and pressure
  • Added the following Physics constants: speed of light in free space and acceleration of free fall

Version 0.0.2

  • Fixed publishing date in gem specification

Version 0.0.3

  • Added the following Physics constants: permeability of free space, permittivity of free space, elementary charge, Planck constant, unified atomic mass unit, rest mass of electron, rest mass of proton, molar gas constant, avogadro constant, Boltzmann constant, and gravitational constant

Version 0.1.0

  • Added Physics formulas in waves and thermodynamics
  • Added the following Physics constants: rest mass of neutron, Stefan constant, and Wien constant
  • Updated existing documentation style to YARD documentation style

Version 0.2.0

  • Added Physics formulas in electricity
  • Added geometric and conversion formulas commonly used in Physics

Version 0.3.0

  • Added Physics formulas in quantum
  • Added more geometric and conversion formulas commonly used in Physics

Version 0.3.1

  • Added Physics formulas in gravitational fields and electric fields

Version 0.3.2

  • Added Physics formulas in magnetic fields, stress, and strain

Version 0.4.0

  • Added Physics formulas in circular motion

Version 0.4.1

  • Added Physics formulas in oscillations

Contribution

Please feel free to submit any ideas, questions, or problems by reporting an issue.

License