Skip to content

Instantly share code, notes, and snippets.

@gubi
Last active March 30, 2016 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gubi/cf89c69efaa9eef07e78315712fdb34a to your computer and use it in GitHub Desktop.
Save gubi/cf89c69efaa9eef07e78315712fdb34a to your computer and use it in GitHub Desktop.
<?php
abstract class Physics {
/**
* The Planck's law
* @param integer $J An integer that represent an energy measure
* @param integer $s An integer that represent a time measure
*/
public static function Planck($J, $s) {
$h = 6.62607004 * pow(10, -34) * ($J * $s);
return $h;
}
/**
* The Quantum Mechanics method
* @param string $type Is this "deterministic"?
* @param string $elements Some definition elements
*/
public static function QuatumMechanics($type, $elements) {
if($type == "deterministic") {
return "No randomness and " . $elements;
}
}
/**
* The Bohm Theory, pure abstract definition
*/
abstract public static function BohmTheory();
}
/**
* The class that extends the above abstract
*/
class PhysicsTheories extends Physics {
/**
* Bohm Theory
* @return string Quantum mechanics data
*/
public static function BohmTheory() {
return Physics::QuatumMechanics("deterministic", "non-local Universe") . ".\nUses also the Plack's law, which if J = 10 and s = 2 is the equivalent of " . Physics::Planck(10, 2);
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment