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)); }
public static SqlExpression MathSinh( [Type(typeof(double))] SqlExpression d) { return((SqlDml.Exp(d) - SqlDml.Exp(-d)) / SqlDml.Literal(2)); }
public static SqlExpression MathExp( [Type(typeof(double))] SqlExpression d) { return(SqlDml.Exp(d)); }