Example #1
0
        private static void Acos(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.Acos(atom.value)));
        }