AFC - Abacus Formula Compiler for Java

Decompiled Code For LOGINV( C223, D223, E223 )

The expression

=LOGINV( C223, D223, E223 )

is compiled to the following class(es):

package org.formulacompiler.gen;
import org.formulacompiler.runtime.Computation;
import org.formulacompiler.runtime.internal.Environment;
import org.formulacompiler.runtime.internal.RuntimeDouble_v2;
import org.formulacompiler.runtime.internal.Runtime_v2;
import org.formulacompiler.tests.reference.base.Inputs;
import org.formulacompiler.tests.reference.base.Outputs;

final class $Root extends Outputs implements Computation
{
    private final Inputs $inputs;
    final Environment $environment;

    $Root(Inputs inputs, Environment environment) {
        $environment = environment;
        $inputs = inputs;
    }

    final double get$0() {
        double d;
        if (!(get$1() > 0.0) || get$1() >= 1.0) {
            Runtime_v2.fun_ERROR("#NUM! because not 0 < x < 1 in LOGINV");
            d = (double) -1;
        } else if (get$3() <= 0.0) {
            Runtime_v2.fun_ERROR("#NUM! because sigma <= 0 in LOGINV");
            d = (double) -1;
        } else {
            double d_0_;
            if (!(get$1() > 0.0) || get$1() >= 1.0) {
                Runtime_v2
                    .fun_ERROR("#NUM! because not 0 < x < 1 in NORMSINV");
                d_0_ = (double) -1;
            } else
                d_0_
                    = (Math.abs(get$1() - 0.5) <= 0.425
                       ? ((get$1() - 0.5)
                          * (((((((((((((((0.180625
                                           - (get$1() - 0.5) * (get$1() - 0.5))
                                          * 2509.0809287301227)
                                         + 33430.57558358813)
                                        * (0.180625
                                           - (get$1() - 0.5) * (get$1()
                                                                - 0.5)))
                                       + 67265.7709270087)
                                      * (0.180625
                                         - (get$1() - 0.5) * (get$1() - 0.5)))
                                     + 45921.95393154987)
                                    * (0.180625
                                       - (get$1() - 0.5) * (get$1() - 0.5)))
                                   + 13731.69376550946)
                                  * (0.180625
                                     - (get$1() - 0.5) * (get$1() - 0.5)))
                                 + 1971.5909503065513)
                                * (0.180625
                                   - (get$1() - 0.5) * (get$1() - 0.5)))
                               + 133.14166789178438)
                              * (0.180625 - (get$1() - 0.5) * (get$1() - 0.5)))
                             + 3.3871328727963665)
                          / (((((((((((((((0.180625
                                           - (get$1() - 0.5) * (get$1() - 0.5))
                                          * 5226.495278852854)
                                         + 28729.085735721943)
                                        * (0.180625
                                           - (get$1() - 0.5) * (get$1()
                                                                - 0.5)))
                                       + 39307.89580009271)
                                      * (0.180625
                                         - (get$1() - 0.5) * (get$1() - 0.5)))
                                     + 21213.794301586597)
                                    * (0.180625
                                       - (get$1() - 0.5) * (get$1() - 0.5)))
                                   + 5394.196021424751)
                                  * (0.180625
                                     - (get$1() - 0.5) * (get$1() - 0.5)))
                                 + 687.1870074920579)
                                * (0.180625
                                   - (get$1() - 0.5) * (get$1() - 0.5)))
                               + 42.31333070160091)
                              * (0.180625 - (get$1() - 0.5) * (get$1() - 0.5)))
                             + 1.0))
                       : get$1() - 0.5 < 0.0
                       ? -((RuntimeDouble_v2.fun_SQRT
                            (-RuntimeDouble_v2.fun_LN(get$1() - 0.5 > 0.0
                                                      ? 1.0 - get$1()
                                                      : get$1()))) <= 5.0
                           ? ((((((((((((((((RuntimeDouble_v2.fun_SQRT
                                             (-RuntimeDouble_v2.fun_LN
                                               (get$1() - 0.5 > 0.0
                                                ? 1.0 - get$1() : get$1())))
                                            - 1.6) * 7.745450142783414E-4
                                           + 0.022723844989269184)
                                          * ((RuntimeDouble_v2.fun_SQRT
                                              (-RuntimeDouble_v2.fun_LN
                                                (get$1() - 0.5 > 0.0
                                                 ? 1.0 - get$1() : get$1())))
                                             - 1.6))
                                         + 0.2417807251774506)
                                        * ((RuntimeDouble_v2.fun_SQRT
                                            (-RuntimeDouble_v2.fun_LN
                                              (get$1() - 0.5 > 0.0
                                               ? 1.0 - get$1() : get$1())))
                                           - 1.6))
                                       + 1.2704582524523684)
                                      * ((RuntimeDouble_v2.fun_SQRT
                                          (-RuntimeDouble_v2.fun_LN
                                            (get$1() - 0.5 > 0.0
                                             ? 1.0 - get$1() : get$1())))
                                         - 1.6))
                                     + 3.6478483247632045)
                                    * ((RuntimeDouble_v2.fun_SQRT
                                        (-RuntimeDouble_v2.fun_LN((get$1()
                                                                   - 0.5) > 0.0
                                                                  ? (1.0
                                                                     - get$1())
                                                                  : get$1())))
                                       - 1.6))
                                   + 5.769497221460691)
                                  * ((RuntimeDouble_v2.fun_SQRT
                                      (-RuntimeDouble_v2.fun_LN((get$1() - 0.5
                                                                 > 0.0)
                                                                ? 1.0 - get$1()
                                                                : get$1())))
                                     - 1.6))
                                 + 4.630337846156546)
                                * ((RuntimeDouble_v2.fun_SQRT
                                    (-RuntimeDouble_v2.fun_LN((get$1() - 0.5
                                                               > 0.0)
                                                              ? 1.0 - get$1()
                                                              : get$1())))
                                   - 1.6))
                               + 1.4234371107496835)
                              / (((((((((((((((RuntimeDouble_v2.fun_SQRT
                                               (-RuntimeDouble_v2.fun_LN
                                                 (get$1() - 0.5 > 0.0
                                                  ? 1.0 - get$1() : get$1())))
                                              - 1.6) * 1.0507500716444169E-9
                                             + 5.475938084995345E-4)
                                            * ((RuntimeDouble_v2.fun_SQRT
                                                (-RuntimeDouble_v2.fun_LN
                                                  (get$1() - 0.5 > 0.0
                                                   ? 1.0 - get$1() : get$1())))
                                               - 1.6))
                                           + 0.015198666563616457)
                                          * ((RuntimeDouble_v2.fun_SQRT
                                              (-RuntimeDouble_v2.fun_LN
                                                (get$1() - 0.5 > 0.0
                                                 ? 1.0 - get$1() : get$1())))
                                             - 1.6))
                                         + 0.14810397642748008)
                                        * ((RuntimeDouble_v2.fun_SQRT
                                            (-RuntimeDouble_v2.fun_LN
                                              (get$1() - 0.5 > 0.0
                                               ? 1.0 - get$1() : get$1())))
                                           - 1.6))
                                       + 0.6897673349851)
                                      * ((RuntimeDouble_v2.fun_SQRT
                                          (-RuntimeDouble_v2.fun_LN
                                            (get$1() - 0.5 > 0.0
                                             ? 1.0 - get$1() : get$1())))
                                         - 1.6))
                                     + 1.6763848301838038)
                                    * ((RuntimeDouble_v2.fun_SQRT
                                        (-RuntimeDouble_v2.fun_LN((get$1()
                                                                   - 0.5) > 0.0
                                                                  ? (1.0
                                                                     - get$1())
                                                                  : get$1())))
                                       - 1.6))
                                   + 2.053191626637759)
                                  * ((RuntimeDouble_v2.fun_SQRT
                                      (-RuntimeDouble_v2.fun_LN((get$1() - 0.5
                                                                 > 0.0)
                                                                ? 1.0 - get$1()
                                                                : get$1())))
                                     - 1.6))
                                 + 1.0))
                           : ((((((((((((((((RuntimeDouble_v2.fun_SQRT
                                             (-RuntimeDouble_v2.fun_LN
                                               (get$1() - 0.5 > 0.0
                                                ? 1.0 - get$1() : get$1())))
                                            - 5.0) * 2.0103343992922881E-7
                                           + 2.7115555687434876E-5)
                                          * ((RuntimeDouble_v2.fun_SQRT
                                              (-RuntimeDouble_v2.fun_LN
                                                (get$1() - 0.5 > 0.0
                                                 ? 1.0 - get$1() : get$1())))
                                             - 5.0))
                                         + 0.0012426609473880784)
                                        * ((RuntimeDouble_v2.fun_SQRT
                                            (-RuntimeDouble_v2.fun_LN
                                              (get$1() - 0.5 > 0.0
                                               ? 1.0 - get$1() : get$1())))
                                           - 5.0))
                                       + 0.026532189526576124)
                                      * ((RuntimeDouble_v2.fun_SQRT
                                          (-RuntimeDouble_v2.fun_LN
                                            (get$1() - 0.5 > 0.0
                                             ? 1.0 - get$1() : get$1())))
                                         - 5.0))
                                     + 0.29656057182850487)
                                    * ((RuntimeDouble_v2.fun_SQRT
                                        (-RuntimeDouble_v2.fun_LN((get$1()
                                                                   - 0.5) > 0.0
                                                                  ? (1.0
                                                                     - get$1())
                                                                  : get$1())))
                                       - 5.0))
                                   + 1.7848265399172913)
                                  * ((RuntimeDouble_v2.fun_SQRT
                                      (-RuntimeDouble_v2.fun_LN((get$1() - 0.5
                                                                 > 0.0)
                                                                ? 1.0 - get$1()
                                                                : get$1())))
                                     - 5.0))
                                 + 5.463784911164114)
                                * ((RuntimeDouble_v2.fun_SQRT
                                    (-RuntimeDouble_v2.fun_LN((get$1() - 0.5
                                                               > 0.0)
                                                              ? 1.0 - get$1()
                                                              : get$1())))
                                   - 5.0))
                               + 6.657904643501103)
                              / (((((((((((((((RuntimeDouble_v2.fun_SQRT
                                               (-RuntimeDouble_v2.fun_LN
                                                 (get$1() - 0.5 > 0.0
                                                  ? 1.0 - get$1() : get$1())))
                                              - 5.0) * 2.0442631033899397E-15
                                             + 1.421511758316446E-7)
                                            * ((RuntimeDouble_v2.fun_SQRT
                                                (-RuntimeDouble_v2.fun_LN
                                                  (get$1() - 0.5 > 0.0
                                                   ? 1.0 - get$1() : get$1())))
                                               - 5.0))
                                           + 1.8463183175100548E-5)
                                          * ((RuntimeDouble_v2.fun_SQRT
                                              (-RuntimeDouble_v2.fun_LN
                                                (get$1() - 0.5 > 0.0
                                                 ? 1.0 - get$1() : get$1())))
                                             - 5.0))
                                         + 7.868691311456133E-4)
                                        * ((RuntimeDouble_v2.fun_SQRT
                                            (-RuntimeDouble_v2.fun_LN
                                              (get$1() - 0.5 > 0.0
                                               ? 1.0 - get$1() : get$1())))
                                           - 5.0))
                                       + 0.014875361290850615)
                                      * ((RuntimeDouble_v2.fun_SQRT
                                          (-RuntimeDouble_v2.fun_LN
                                            (get$1() - 0.5 > 0.0
                                             ? 1.0 - get$1() : get$1())))
                                         - 5.0))
                                     + 0.1369298809227358)
                                    * ((RuntimeDouble_v2.fun_SQRT
                                        (-RuntimeDouble_v2.fun_LN((get$1()
                                                                   - 0.5) > 0.0
                                                                  ? (1.0
                                                                     - get$1())
                                                                  : get$1())))
                                       - 5.0))
                                   + 0.599832206555888)
                                  * ((RuntimeDouble_v2.fun_SQRT
                                      (-RuntimeDouble_v2.fun_LN((get$1() - 0.5
                                                                 > 0.0)
                                                                ? 1.0 - get$1()
                                                                : get$1())))
                                     - 5.0))
                                 + 1.0)))
                       : (RuntimeDouble_v2.fun_SQRT
                          (-RuntimeDouble_v2.fun_LN(get$1() - 0.5 > 0.0
                                                    ? 1.0 - get$1()
                                                    : get$1()))) <= 5.0
                       ? ((((((((((((((((RuntimeDouble_v2.fun_SQRT
                                         (-RuntimeDouble_v2.fun_LN
                                           (get$1() - 0.5 > 0.0 ? 1.0 - get$1()
                                            : get$1())))
                                        - 1.6) * 7.745450142783414E-4
                                       + 0.022723844989269184)
                                      * ((RuntimeDouble_v2.fun_SQRT
                                          (-RuntimeDouble_v2.fun_LN
                                            (get$1() - 0.5 > 0.0
                                             ? 1.0 - get$1() : get$1())))
                                         - 1.6))
                                     + 0.2417807251774506)
                                    * ((RuntimeDouble_v2.fun_SQRT
                                        (-RuntimeDouble_v2.fun_LN((get$1()
                                                                   - 0.5) > 0.0
                                                                  ? (1.0
                                                                     - get$1())
                                                                  : get$1())))
                                       - 1.6))
                                   + 1.2704582524523684)
                                  * ((RuntimeDouble_v2.fun_SQRT
                                      (-RuntimeDouble_v2.fun_LN((get$1() - 0.5
                                                                 > 0.0)
                                                                ? 1.0 - get$1()
                                                                : get$1())))
                                     - 1.6))
                                 + 3.6478483247632045)
                                * ((RuntimeDouble_v2.fun_SQRT
                                    (-RuntimeDouble_v2.fun_LN((get$1() - 0.5
                                                               > 0.0)
                                                              ? 1.0 - get$1()
                                                              : get$1())))
                                   - 1.6))
                               + 5.769497221460691)
                              * ((RuntimeDouble_v2.fun_SQRT
                                  (-RuntimeDouble_v2.fun_LN(get$1() - 0.5 > 0.0
                                                            ? 1.0 - get$1()
                                                            : get$1())))
                                 - 1.6))
                             + 4.630337846156546)
                            * ((RuntimeDouble_v2.fun_SQRT
                                (-RuntimeDouble_v2.fun_LN(get$1() - 0.5 > 0.0
                                                          ? 1.0 - get$1()
                                                          : get$1())))
                               - 1.6))
                           + 1.4234371107496835)
                          / (((((((((((((((RuntimeDouble_v2.fun_SQRT
                                           (-RuntimeDouble_v2.fun_LN
                                             (get$1() - 0.5 > 0.0
                                              ? 1.0 - get$1() : get$1())))
                                          - 1.6) * 1.0507500716444169E-9
                                         + 5.475938084995345E-4)
                                        * ((RuntimeDouble_v2.fun_SQRT
                                            (-RuntimeDouble_v2.fun_LN
                                              (get$1() - 0.5 > 0.0
                                               ? 1.0 - get$1() : get$1())))
                                           - 1.6))
                                       + 0.015198666563616457)
                                      * ((RuntimeDouble_v2.fun_SQRT
                                          (-RuntimeDouble_v2.fun_LN
                                            (get$1() - 0.5 > 0.0
                                             ? 1.0 - get$1() : get$1())))
                                         - 1.6))
                                     + 0.14810397642748008)
                                    * ((RuntimeDouble_v2.fun_SQRT
                                        (-RuntimeDouble_v2.fun_LN((get$1()
                                                                   - 0.5) > 0.0
                                                                  ? (1.0
                                                                     - get$1())
                                                                  : get$1())))
                                       - 1.6))
                                   + 0.6897673349851)
                                  * ((RuntimeDouble_v2.fun_SQRT
                                      (-RuntimeDouble_v2.fun_LN((get$1() - 0.5
                                                                 > 0.0)
                                                                ? 1.0 - get$1()
                                                                : get$1())))
                                     - 1.6))
                                 + 1.6763848301838038)
                                * ((RuntimeDouble_v2.fun_SQRT
                                    (-RuntimeDouble_v2.fun_LN((get$1() - 0.5
                                                               > 0.0)
                                                              ? 1.0 - get$1()
                                                              : get$1())))
                                   - 1.6))
                               + 2.053191626637759)
                              * ((RuntimeDouble_v2.fun_SQRT
                                  (-RuntimeDouble_v2.fun_LN(get$1() - 0.5 > 0.0
                                                            ? 1.0 - get$1()
                                                            : get$1())))
                                 - 1.6))
                             + 1.0))
                       : ((((((((((((((((RuntimeDouble_v2.fun_SQRT
                                         (-RuntimeDouble_v2.fun_LN
                                           (get$1() - 0.5 > 0.0 ? 1.0 - get$1()
                                            : get$1())))
                                        - 5.0) * 2.0103343992922881E-7
                                       + 2.7115555687434876E-5)
                                      * ((RuntimeDouble_v2.fun_SQRT
                                          (-RuntimeDouble_v2.fun_LN
                                            (get$1() - 0.5 > 0.0
                                             ? 1.0 - get$1() : get$1())))
                                         - 5.0))
                                     + 0.0012426609473880784)
                                    * ((RuntimeDouble_v2.fun_SQRT
                                        (-RuntimeDouble_v2.fun_LN((get$1()
                                                                   - 0.5) > 0.0
                                                                  ? (1.0
                                                                     - get$1())
                                                                  : get$1())))
                                       - 5.0))
                                   + 0.026532189526576124)
                                  * ((RuntimeDouble_v2.fun_SQRT
                                      (-RuntimeDouble_v2.fun_LN((get$1() - 0.5
                                                                 > 0.0)
                                                                ? 1.0 - get$1()
                                                                : get$1())))
                                     - 5.0))
                                 + 0.29656057182850487)
                                * ((RuntimeDouble_v2.fun_SQRT
                                    (-RuntimeDouble_v2.fun_LN((get$1() - 0.5
                                                               > 0.0)
                                                              ? 1.0 - get$1()
                                                              : get$1())))
                                   - 5.0))
                               + 1.7848265399172913)
                              * ((RuntimeDouble_v2.fun_SQRT
                                  (-RuntimeDouble_v2.fun_LN(get$1() - 0.5 > 0.0
                                                            ? 1.0 - get$1()
                                                            : get$1())))
                                 - 5.0))
                             + 5.463784911164114)
                            * ((RuntimeDouble_v2.fun_SQRT
                                (-RuntimeDouble_v2.fun_LN(get$1() - 0.5 > 0.0
                                                          ? 1.0 - get$1()
                                                          : get$1())))
                               - 5.0))
                           + 6.657904643501103)
                          / (((((((((((((((RuntimeDouble_v2.fun_SQRT
                                           (-RuntimeDouble_v2.fun_LN
                                             (get$1() - 0.5 > 0.0
                                              ? 1.0 - get$1() : get$1())))
                                          - 5.0) * 2.0442631033899397E-15
                                         + 1.421511758316446E-7)
                                        * ((RuntimeDouble_v2.fun_SQRT
                                            (-RuntimeDouble_v2.fun_LN
                                              (get$1() - 0.5 > 0.0
                                               ? 1.0 - get$1() : get$1())))
                                           - 5.0))
                                       + 1.8463183175100548E-5)
                                      * ((RuntimeDouble_v2.fun_SQRT
                                          (-RuntimeDouble_v2.fun_LN
                                            (get$1() - 0.5 > 0.0
                                             ? 1.0 - get$1() : get$1())))
                                         - 5.0))
                                     + 7.868691311456133E-4)
                                    * ((RuntimeDouble_v2.fun_SQRT
                                        (-RuntimeDouble_v2.fun_LN((get$1()
                                                                   - 0.5) > 0.0
                                                                  ? (1.0
                                                                     - get$1())
                                                                  : get$1())))
                                       - 5.0))
                                   + 0.014875361290850615)
                                  * ((RuntimeDouble_v2.fun_SQRT
                                      (-RuntimeDouble_v2.fun_LN((get$1() - 0.5
                                                                 > 0.0)
                                                                ? 1.0 - get$1()
                                                                : get$1())))
                                     - 5.0))
                                 + 0.1369298809227358)
                                * ((RuntimeDouble_v2.fun_SQRT
                                    (-RuntimeDouble_v2.fun_LN((get$1() - 0.5
                                                               > 0.0)
                                                              ? 1.0 - get$1()
                                                              : get$1())))
                                   - 5.0))
                               + 0.599832206555888)
                              * ((RuntimeDouble_v2.fun_SQRT
                                  (-RuntimeDouble_v2.fun_LN(get$1() - 0.5 > 0.0
                                                            ? 1.0 - get$1()
                                                            : get$1())))
                                 - 5.0))
                             + 1.0)));
            d = Math.exp(d_0_ * get$3() + get$2());
        }
        return d;
    }

    public final double dbl() {
        return get$0();
    }

    final double get$1() {
        return $inputs.dbl(0);
    }

    final double get$2() {
        return $inputs.dbl(1);
    }

    final double get$3() {
        return $inputs.dbl(2);
    }
}