예제 #1
0
  public GeoElement[] processFunctionNVar(ExpressionNode funNode, FunctionNVar fun) {
    fun.initFunction();

    String label = fun.getLabel();
    GeoElement[] ret = new GeoElement[1];

    GeoElement[] vars = fun.getGeoElementVariables();
    boolean isIndependent = (vars == null || vars.length == 0);

    if (isIndependent) {
      ret[0] = kernel.FunctionNVar(label, fun);
    } else {
      ret[0] = kernel.DependentFunctionNVar(label, fun);
    }
    return ret;
  }