示例#1
0
        public static Entity Eval(List <Entity> args)
        {
            MathFunctions.AssertArgs(args.Count, 1);
            var arg = args[0].InnerEval();

            if (arg.entType == Entity.EntType.NUMBER)
            {
                return(new NumberEntity(Number.Arctan((arg as NumberEntity).Value)));
            }
            else
            {
                return(Arctanf.Hang(arg));
            }
        }
示例#2
0
 public Entity Arctan() => Arctanf.Hang(this);
示例#3
0
 public static Entity Arctan(Entity a) => Arctanf.Hang(a);