51b2e962f4891e7563543db5560e2bdc9a20bd6d,mathics/builtin/exptrig.py,Pi,apply_N,#Pi#Any#Any#,44
Before Change
def apply_N(self, precision, evaluation):
"N[Pi, precision_]"
precision = get_precision(precision, evaluation)
if precision is not None:
return Real(sympy.pi.n(dps(precision)), p=precision)
class E(SympyConstant):
<dl>
<dt>"E"
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.pi)
else:
result = sympy.pi.n(d)
return PrecisionReal(result, result._prec + 1)
class E(SympyConstant):
<dl>
<dt>"E"
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: Pi
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: 55a2a513c16061469bbbc7bb2a29639fb63ffd24
Time: 2016-08-05
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/numeric.py
Class Name: MachinePrecision
Method Name: apply_N