Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
  lib
  test
  CHANGELOG.md
  LICENSE.md
  README.md
Size: Mime:
  README.md

Joules Logo

Ruby Badge

Gem Version Build Status Inline Docs

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.3.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/.

Contribution

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

License