예제 #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.Arccos((arg as NumberEntity).Value)));
            }
            else
            {
                return(Arccosf.Hang(arg));
            }
        }
예제 #2
0
        static MathS()
        {
            NumberFormatInfo nfi = new NumberFormatInfo
            {
                NumberDecimalSeparator = "."
            };

            Sumf.Wakeup();
            Minusf.Wakeup();
            Mulf.Wakeup();
            Divf.Wakeup();
            Powf.Wakeup();
            Sinf.Wakeup();
            Cosf.Wakeup();
            Tanf.Wakeup();
            Cotanf.Wakeup();
            Logf.Wakeup();
            Arcsinf.Wakeup();
            Arccosf.Wakeup();
            Arctanf.Wakeup();
            Arccotanf.Wakeup();
        }
예제 #3
0
 public static Entity Arcsec(Entity a) => Arccosf.Hang(1 / a);
예제 #4
0
 public Entity Arccos() => Arccosf.Hang(this);
예제 #5
0
 public static Entity Arccos(Entity a) => Arccosf.Hang(a);