Exemple #1
0
        public static Expression Tanh(Expression x)
        {
            var z = new Expression("tanh", () => Math.Tanh(x.Val()), (vari) => Math.Pow(Math2.Sech(x.Val()), 2) * x.Diff(vari));

            z.AddChildren(x);
            return(z);
        }
Exemple #2
0
        public static Expression Coth(Expression x)
        {
            var z = new Expression("coth", () => Math2.Coth(x.Val()), (vari) => - Math.Pow(Math2.Cosech(x.Val()), 2) * x.Diff(vari));

            z.AddChildren(x);
            return(z);
        }