using System;

namespace InkFx.Express.Extend.MathMethod
{
    [Serializable]
    [CalcExpress(Express = "Tanh {A}", Keywords = new[] { "Tanh" }, Level = 1000000, ExpressType = typeof(TanhCalcMethod))]
    public class TanhCalcMethod : ExpressBase
    {
        public override bool CanPreCalc
        {
            get { return true; }
        }

        public override object Calc(ExpressSchema expressSchema, object objOrHash)
        {
            double arg1 = ArgumentsDouble(0, expressSchema, objOrHash);
            double value = Math.Tanh(arg1);
            return value;
        }

       
    }
}
