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)); } }
public Entity Arctan() => Arctanf.Hang(this);
public static Entity Arctan(Entity a) => Arctanf.Hang(a);