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)
After Change
def apply_N(self, precision, evaluation):
"N[E, precision_]"
if precision.get_name() == "System`MachinePrecision":
d = None
else:
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"
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 16
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: Pi
Method Name: apply_N
Project Name: mathics/Mathics
Commit Name: 51b2e962f4891e7563543db5560e2bdc9a20bd6d
Time: 2016-08-05
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/specialfunctions.py
Class Name: AiryBiZero
Method Name: apply_N
Project Name: mathics/Mathics
Commit Name: 51b2e962f4891e7563543db5560e2bdc9a20bd6d
Time: 2016-08-05
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/specialfunctions.py
Class Name: AiryAiZero
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