public void CloneTest() { var exp = new Csch(new Number(1)); var clone = exp.Clone(); Assert.Equal(exp, clone); }
/// <summary> /// Differentiates the specified expression. /// </summary> /// <param name="expression">The expression.</param> /// <param name="variable">The variable.</param> /// <returns>Returns the derivative.</returns> protected virtual IExpression Csch(Csch expression, Variable variable) { var coth = new Coth(expression.Argument.Clone()); var mul1 = new Mul(coth, expression.Clone()); var mul2 = new Mul(_Differentiate(expression.Argument.Clone(), variable), mul1); var unMinus = new UnaryMinus(mul2); return unMinus; }