Closed
Description
The function random() returns a "float", but 1.0*random() is a "RealNumber". The following code:
%time
#1
N=5000
x=random()
for c in xrange(N):
kk = exp(x)
takes 5.24 seconds, while
%time
#1
N=5000
x=random()*1.0
for c in xrange(N):
kk = exp(x)
takes 0.08
Component: symbolics
Keywords: float, RealNumber
Reviewer: Maarten Derickx
Issue created by migration from https://trac.sagemath.org/ticket/11332