package math;////  ConstantEvaluation.java////  Created by Michael Rule on Mon Apr 04 2005.//  Copyright (c) 2005 __MyCompanyName__. All rights reserved.///** * * @author mer49 */public class ConstantEvaluation implements EvaluationOperation{        private final complex myConstant;        /**     *     * @param C     */    public ConstantEvaluation(float C)    {        myConstant = new complex(C);    }    /**     *     * @param C     */    public ConstantEvaluation(complex C)    {        myConstant = new complex(C);    }        /**     *     * @param id     * @return     */    @Override    public boolean equals(int id)    {        return id == 0;    }        /**     *     * @param variables     * @return     */    @Override    public complex operate(ComplexContex variables)    {        return myConstant;    }        /**     *     * @return     */    @Override    public String toString()    {        return myConstant.toString();    }        /**     *     * @return     */    @Override    public boolean is_analytic()    {        return true ;    }}