All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jscl.math.function.Comparison Maven / Gradle / Ivy

The newest version!
package jscl.math.function;

import jscl.math.Generic;
import jscl.math.JSCLBoolean;
import jscl.math.NotIntegerException;
import jscl.math.NotIntegrableException;
import jscl.math.NumericWrapper;
import jscl.math.Variable;

public class Comparison extends Function {
    int operator;

    public Comparison(String name, Generic expression1, Generic expression2) {
        super(name,new Generic[] {expression1,expression2});
        for(int i=0;i=0;
            case 5:
                return n>0;
            case 6:
                return n==0;
            default:
                return false;
        }
    }

    protected Variable newinstance() {
        return new Comparison(name,null,null);
    }

    private static final String easo[]={"eq","neq","leq","lt","geq","gt","approx"};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy