コード例 #1
0
 public SingleOperation(SingleMethod <T> method)
 {
     _method = method;
 }
コード例 #2
0
 public SingleOperation(SingleMethod <T> method, INode <T> right) : this(right)
 {
     _method = method;
 }
コード例 #3
0
        public INode <double> GetCosOperation(INode <double> first)
        {
            SingleMethod <double> cos = new SingleMethod <double>(Operation.COS, (double one) => Math.Cos(one));

            return(new SingleOperation <double>(cos, first));
        }
コード例 #4
0
        public INode <double> GetPow2Operation(INode <double> first)
        {
            SingleMethod <double> pow2 = new SingleMethod <double>(Operation.POW2, (double one) => Math.Pow(one, 2.0));

            return(new SingleOperation <double>(pow2, first));
        }
コード例 #5
0
        public INode <double> GetSinOperation(INode <double> first)
        {
            SingleMethod <double> sin = new SingleMethod <double>(Operation.SIN, (double one) => Math.Sin(one));

            return(new SingleOperation <double>(sin, first));
        }