Example #1
0
 public CosFunc(Term inner)
     : base(inner, values => Math.Cos(inner.Evaluate(values)))
 {
     Inner.Parent = this;
 }
Example #2
0
 public ExpFunc(Term inner)
     : base(inner, values => Math.Exp(inner.Evaluate(values)))
 {
     Inner.Parent = this;
 }
Example #3
0
 public static Func Sin(Term x)
 {
     return new SinFunc(x);
 }
Example #4
0
 public static Func Sqrt(Term x)
 {
     return new SqrtFunc(x);
 }
Example #5
0
 public SqrtFunc(Term inner)
     : base(inner, values => Math.Sqrt(inner.Evaluate(values)))
 {
     Inner.Parent = this;
 }
Example #6
0
 public static Func Pow(Term x, Term y)
 {
     return new PowFunc(x, y);
 }
Example #7
0
 public static Func Ln(Term x)
 {
     return new LnFunc(x);
 }
Example #8
0
 public static Func Exp(Term x)
 {
     return new ExpFunc(x);
 }
Example #9
0
 public PowFunc(Term left, Term right)
     : base(left, right, values => Math.Pow(left.Evaluate(values), right.Evaluate(values)))
 {
     Left.Parent = this;
     Right.Parent = this;
 }
Example #10
0
 public static Func Cos(Term x)
 {
     return new CosFunc(x);
 }
Example #11
0
 public LnFunc(Term inner)
     : base(inner, values => Math.Log(inner.Evaluate(values)))
 {
     Inner.Parent = this;
 }