codesimian
Class Physics

java.lang.Object
  extended by codesimian.Physics

public class Physics
extends java.lang.Object


Method Summary
static double chanceTheUniverseIsInfinite()
          Is the total of everything that exists finite or infinite? We have no way to know if we've seen the end of the universe or just one of many smaller ends of things in the universe, therefore the chance should be near 0.5, but this returns 0.49 because Ockham's Razor says smaller universes are more probable.
static double daysIn1AverageYear()
          Now 6/2007, google.com says 365.242199
static double guessWholeUniverseMetersWide()
           
static double howManyAtomsInKnownUniverse()
          Now 6/2007, http://en.wikipedia.org/wiki/Known_universe estimates it as 10^80
static double inchesIn1Meter()
          Now 6/2007, google.com says 39.3700787
static double knownUniverseMetersWide()
          This month 6/2007, google.com says 92.94 billion lightyears wide.
static double metersIn1Lightsecond()
          Now 6/2007, google.com says 299792458
static double metersIn1Lightyear()
           
static double secondsIn1AverageYear()
          Now 6/2007, google.com says 31556926, which is 365.242199 days
 double wordToMeters(java.lang.String word)
          any 1 word that can be converted to a quantity of meters
 double wordToSeconds(java.lang.String word)
          any 1 word that can be converted to a quantity of seconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

wordToMeters

public double wordToMeters(java.lang.String word)
                    throws NatLangMathException
any 1 word that can be converted to a quantity of meters

Throws:
NatLangMathException

wordToSeconds

public double wordToSeconds(java.lang.String word)
                     throws NatLangMathException
any 1 word that can be converted to a quantity of seconds. Examples: year, minute, a long time, instantly, or any measure of distance (1 second = metersIn1Lightsecond() meters)

Throws:
NatLangMathException

guessWholeUniverseMetersWide

public static double guessWholeUniverseMetersWide()

knownUniverseMetersWide

public static double knownUniverseMetersWide()
This month 6/2007, google.com says 92.94 billion lightyears wide. This is meters wide.


inchesIn1Meter

public static double inchesIn1Meter()
Now 6/2007, google.com says 39.3700787


metersIn1Lightsecond

public static double metersIn1Lightsecond()
Now 6/2007, google.com says 299792458


daysIn1AverageYear

public static double daysIn1AverageYear()
Now 6/2007, google.com says 365.242199


secondsIn1AverageYear

public static double secondsIn1AverageYear()
Now 6/2007, google.com says 31556926, which is 365.242199 days


metersIn1Lightyear

public static double metersIn1Lightyear()

howManyAtomsInKnownUniverse

public static double howManyAtomsInKnownUniverse()
Now 6/2007, http://en.wikipedia.org/wiki/Known_universe estimates it as 10^80


chanceTheUniverseIsInfinite

public static double chanceTheUniverseIsInfinite()
Is the total of everything that exists finite or infinite? We have no way to know if we've seen the end of the universe or just one of many smaller ends of things in the universe, therefore the chance should be near 0.5, but this returns 0.49 because Ockham's Razor says smaller universes are more probable.