@@ -0,0 +1,1501 @@
+/*%0A * Copyright 2013 Erwin M%C3%BCller %3Cerwin.mueller@deventm.org%3E%0A *%0A * This file is part of globalpom-utils.%0A *%0A * globalpom-utils is free software: you can redistribute it and/or modify it%0A * under the terms of the GNU Lesser General Public License as published by the%0A * Free Software Foundation, either version 3 of the License, or (at your%0A * option) any later version.%0A *%0A * globalpom-utils is distributed in the hope that it will be useful, but%0A * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or%0A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more%0A * details.%0A *%0A * You should have received a copy of the GNU Lesser General Public License%0A * along with globalpom-utils. If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0Apackage com.anrisoftware.globalpom.constants;%0A%0Aimport static org.apache.commons.math3.util.FastMath.PI;%0A%0Aimport javax.inject.Inject;%0Aimport javax.inject.Singleton;%0A%0Aimport com.anrisoftware.globalpom.measurement.ExactAverageValueFactory;%0Aimport com.anrisoftware.globalpom.measurement.Value;%0Aimport com.google.inject.Provider;%0A%0A/**%0A * Provides the value of 2Pi %7B@code 2%CF%80%E2%89%886.2831853%7D that calculates error%0A * propagation using simpler average errors.%0A * %0A * @author Erwin Mueller, erwin.mueller@deventm.org%0A * @since 1.9%0A */%0A@Singleton%0Apublic class Average2PiProvider implements Provider%3CValue%3E %7B%0A%0A%09@Inject%0A%09private ExactAverageValueFactory factory;%0A%0A%09@Override%0A%09public Value get() %7B%0A%09%09return factory.create(2.0 * PI);%0A%09%7D%0A%0A%7D%0A

Add 2Pi provider