001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017
018 package org.apache.commons.math3.analysis.solvers;
019
020 import org.apache.commons.math3.analysis.UnivariateFunction;
021
022 /**
023 * Base class for solvers.
024 *
025 * @since 3.0
026 * @version $Id: AbstractUnivariateSolver.java 1379560 2012-08-31 19:40:30Z erans $
027 */
028 public abstract class AbstractUnivariateSolver
029 extends BaseAbstractUnivariateSolver<UnivariateFunction>
030 implements UnivariateSolver {
031 /**
032 * Construct a solver with given absolute accuracy.
033 *
034 * @param absoluteAccuracy Maximum absolute error.
035 */
036 protected AbstractUnivariateSolver(final double absoluteAccuracy) {
037 super(absoluteAccuracy);
038 }
039 /**
040 * Construct a solver with given accuracies.
041 *
042 * @param relativeAccuracy Maximum relative error.
043 * @param absoluteAccuracy Maximum absolute error.
044 */
045 protected AbstractUnivariateSolver(final double relativeAccuracy,
046 final double absoluteAccuracy) {
047 super(relativeAccuracy, absoluteAccuracy);
048 }
049 /**
050 * Construct a solver with given accuracies.
051 *
052 * @param relativeAccuracy Maximum relative error.
053 * @param absoluteAccuracy Maximum absolute error.
054 * @param functionValueAccuracy Maximum function value error.
055 */
056 protected AbstractUnivariateSolver(final double relativeAccuracy,
057 final double absoluteAccuracy,
058 final double functionValueAccuracy) {
059 super(relativeAccuracy, absoluteAccuracy, functionValueAccuracy);
060 }
061 }