public ConstantsRegistry() { this.add(new PiConstant()); this.add(new ExtendedConstant(Constants.PI_INV, Math.PI, null)); this.add(new ExtendedConstant(Constants.INF, Double.POSITIVE_INFINITY, "JsclDouble.valueOf(Double.POSITIVE_INFINITY)")); this.add(new ExtendedConstant(Constants.INF_2, Double.POSITIVE_INFINITY, "JsclDouble.valueOf(Double.POSITIVE_INFINITY)")); this.add(new ExtendedConstant(Constants.I, "√(-1)", null)); this.add(new ExtendedConstant(new Constant(E), Math.E, null)); this.add(new ExtendedConstant(new Constant(C), C_VALUE, null)); this.add(new ExtendedConstant(new Constant(G), G_VALUE, null)); this.add(new ExtendedConstant(new Constant(H_REDUCED), H_REDUCED_VALUE, null)); this.add(new ExtendedConstant(new Constant(NAN), Double.NaN, null)); } }