51b2e962f4891e7563543db5560e2bdc9a20bd6d,mathics/builtin/exptrig.py,E,apply_N,#E#Any#Any#,72

Before Change



    def apply_N(self, precision, evaluation):
        "N[E, precision_]"
        precision = get_precision(precision, evaluation)
        if precision is not None:
            return Real(sympy.E.n(dps(precision)), p=precision)


class GoldenRatio(SympyConstant):
    
    <dl>
    <dt>"GoldenRatio"

After Change


            d = precision.get_float_value(n_evaluation=evaluation)
            if d is None:
                return evaluation.message("N", "precbd", precision)
        if d is None:
            return MachineReal(math.e)
        else:
            result = sympy.E.n(d)
            return PrecisionReal(result, result._prec + 1)


class GoldenRatio(SympyConstant):
    
    <dl>
    <dt>"GoldenRatio"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: mathics/Mathics
Commit Name: 51b2e962f4891e7563543db5560e2bdc9a20bd6d
Time: 2016-08-05
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/exptrig.py
Class Name: E
Method Name: apply_N


Project Name: mathics/Mathics
Commit Name: 51b2e962f4891e7563543db5560e2bdc9a20bd6d
Time: 2016-08-05
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/exptrig.py
Class Name: E
Method Name: apply_N


Project Name: mathics/Mathics
Commit Name: 51b2e962f4891e7563543db5560e2bdc9a20bd6d
Time: 2016-08-05
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/exptrig.py
Class Name: Pi
Method Name: apply_N


Project Name: mathics/Mathics
Commit Name: 55a2a513c16061469bbbc7bb2a29639fb63ffd24
Time: 2016-08-05
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/numeric.py
Class Name: MachinePrecision
Method Name: apply_N