/****************************************************************************** * This program prints various math constants. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ import org.pureprogrammer.Utils; public class PhysicalConstants { static final double C_M_PER_SEC = 299792458; static final double PLANCK_J_SEC = 6.62607015E-34; static final double NEWTONS_GRAVITAION_M3_PER_KG_PER_SEC = 6.6743015E-11; static final double ELEMENTARY_CHARGE_COULOMBS = 1.602176634E-19; static final double AVOGADRO_PER_MOL = 6.02214076E23; static final double BOLTZMANN_J_PER_DEGREE = 1.380649E-23; public static void main(String[] args) { System.out.println(Utils.join("", "c: ", C_M_PER_SEC)); System.out.println(Utils.join("", "h: ", PLANCK_J_SEC)); System.out.println(Utils.join("", "G: ", NEWTONS_GRAVITAION_M3_PER_KG_PER_SEC)); System.out.println(Utils.join("", "e: ", ELEMENTARY_CHARGE_COULOMBS)); System.out.println(Utils.join("", "L: ", AVOGADRO_PER_MOL)); System.out.println(Utils.join("", "k: ", BOLTZMANN_J_PER_DEGREE)); } }