import com.imsl.math.*; public class PhysicalEx1 { public static void main(String args[]) { System.out.println("The value of the physical constant PI is " + Physical.constant("PI")); } }
The value of the physical constant PI is 3.141592653589793Link to Java source.