示例#1
0
  public static void test7() {
    FSin sin = new FSin();
    MathFunc fun = FMath.pow(sin, 2);
    System.out.println(fun.toString());
    System.out.println(fun.diff("x"));

    System.out.println(FMath.sqrt(sin));
    System.out.println(FMath.sqrt(sin).diff("x"));

    FSqrt sqrt = new FSqrt();
    System.out.println(sqrt.compile().apply(16));
    System.out.println(FMath.sqrt(FX.x).compile().apply(16));
  }
 public MathFunc diff(String varName) {
   return funCompose.diff(varName);
 }