예제 #1
0
        public static SqlExpression MathTanh(
            [Type(typeof(double))] SqlExpression d)
        {
            var exp2d = SqlDml.Exp(SqlDml.Literal(2) * d);
            var one   = SqlDml.Literal(1);

            return((exp2d - one) / (exp2d + one));
        }
예제 #2
0
 public static SqlExpression MathSinh(
     [Type(typeof(double))] SqlExpression d)
 {
     return((SqlDml.Exp(d) - SqlDml.Exp(-d)) / SqlDml.Literal(2));
 }
예제 #3
0
 public static SqlExpression MathExp(
     [Type(typeof(double))] SqlExpression d)
 {
     return(SqlDml.Exp(d));
 }