1fa35c482c152010a77e32c349030847653d67ce,mathics/builtin/specialfunctions.py,AiryBiZero,apply_N,#AiryBiZero#Any#Any#Any#,762

Before Change


    def apply_N(self, k, precision, evaluation):
        "N[AiryBiZero[k_Integer], precision_]"

        if precision.get_name() == "System`MachinePrecision":
            prec = machine_precision
            d = None
        else:
            d = precision.round_to_float(evaluation)
            if d is None:
                return evaluation.message("N", "precbd", precision)
            prec = _prec(d)

        k_int = k.get_int_value()

        with mpmath.workprec(prec):
            result = mpmath.airybizero(k_int)

After Change


    def apply_N(self, k, precision, evaluation):
        "N[AiryBiZero[k_Integer], precision_]"

        try:
            d = get_precision(precision, evaluation)
        except PrecisionValueError:
            return

        if d is None:
            p = machine_precision
        else:
            p = _prec(d)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: mathics/Mathics
Commit Name: 1fa35c482c152010a77e32c349030847653d67ce
Time: 2016-08-10
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/specialfunctions.py
Class Name: AiryBiZero
Method Name: apply_N


Project Name: mathics/Mathics
Commit Name: 1fa35c482c152010a77e32c349030847653d67ce
Time: 2016-08-10
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/specialfunctions.py
Class Name: AiryBiZero
Method Name: apply_N


Project Name: mathics/Mathics
Commit Name: a0b3ec301bfb8c11b5cbd99ce6ff4bbe9b00a9e1
Time: 2016-08-10
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/numeric.py
Class Name: N
Method Name: apply_other


Project Name: mathics/Mathics
Commit Name: 1fa35c482c152010a77e32c349030847653d67ce
Time: 2016-08-10
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/specialfunctions.py
Class Name: AiryAiZero
Method Name: apply_N