namespace CSMic.StandardLibrary.Functions.Trigonometry.Hyperbolic { public class Cosh : FunctionBase, ICodedFunction { public string Name { get { return "cosh"; } } public override IEnumerable ExpectedArguments { get { yield return new FunctionArgument("value", FunctionValue.NUMBER); } } public FunctionValue Execute(params FunctionArgument[] args) { return Execute(args, (_args) => { var input = _args[0].Value; decimal value = Convert.ToDecimal(input.Value); return new FunctionValue(FunctionValueType.Numeric, Math.Cosh((double)value)); }); } } }