// Two-argument functions private static void Pow(IILState <Complex> ils, IReadOnlyList <Node> arguments) => ils.Call(Complex.Pow, arguments);
private static void Square(IILState <Complex> ils, IReadOnlyList <Node> arguments) { ils.Call(HelperFunctions.Square, arguments); }
private static void Decibels(IILState <Complex> ils, IReadOnlyList <Node> arguments) => ils.Call(HelperFunctions.Decibels, arguments);
private static void DU2(IILState <Complex> ils, IReadOnlyList <Node> arguments) => ils.Call(HelperFunctions.Step2Derivative, arguments);
private static void Ceil(IILState <Complex> ils, IReadOnlyList <Node> arguments) => ils.Call(HelperFunctions.Ceiling, arguments);
private static void DURampDerivative(IILState <double> ils, IReadOnlyList <Node> arguments) => ils.Call(HelperFunctions.RampDerivative, arguments);
private static void Sgn(IILState <Complex> ils, IReadOnlyList <Node> arguments) { ils.Call(null, _sgn, arguments.Check(1)); ils.Generator.Emit(OpCodes.Conv_R8); }
private static void Atan2(IILState <double> ils, IReadOnlyList <Node> arguments) => ils.Call(Math.Atan2, arguments);
private static void Hypot(IILState <double> ils, IReadOnlyList <Node> arguments) => ils.Call(HelperFunctions.Hypot, arguments);
private static void Pwr(IILState <double> ils, IReadOnlyList <Node> arguments) => ils.Call(HelperFunctions.Power, arguments);
private static void Max(IILState <double> ils, IReadOnlyList <Node> arguments) => ils.Call(Math.Max, arguments);
private static void Decibels(IILState <double> ils, IReadOnlyList <Node> arguments) { ils.Call(HelperFunctions.Log10, arguments); ils.Push(20.0); ils.Generator.Emit(OpCodes.Mul); }
private static void Floor(IILState <double> ils, IReadOnlyList <Node> arguments) => ils.Call(Math.Floor, arguments);
private static void Ceil(IILState <double> ils, IReadOnlyList <Node> arguments) => ils.Call(Math.Ceiling, arguments);
private static void Pwrs(IILState <Complex> ils, IReadOnlyList <Node> arguments) => ils.Call(HelperFunctions.Power2, arguments);
// No-argument functions private static void Random(IILState <Complex> ils, IReadOnlyList <Node> arguments) { ils.Call(() => new Complex(_rnd.NextDouble(), 0)); }
private static void Limit(IILState <Complex> ils, IReadOnlyList <Node> arguments) => ils.Call(HelperFunctions.Limit, arguments);
// No-argument functions private static void Random(IILState <double> ils, IReadOnlyList <Node> arguments) => ils.Call(_rnd.NextDouble);