示例#1
0
        private static void Atan(Evaluator eval, StackFrame frame)
        {
            Atom atom = (Atom)frame.args?.value;

            if (atom.type != AtomType.Number)
            {
                throw new ArgumentException("Argument must be number!");
            }

            eval.Return(new Atom(AtomType.Number, UNumber.Atan(atom.value)));
        }