Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A bug in function sine about symbolic computation in Sagemath 7.2?

sage: n=7 sage: [RR(sin(i)) for i in [0,pi/n,..,2pi]] [0.000000000000000, 0.433883739117558, 0.781831482468030, 0.974927912181824, 0.974927912181824, 0.781831482468030, 0.433883739117558, 0.000000000000000, 0.433883739117558, 0.781831482468030, 0.974927912181824, 0.974927912181824, 0.781831482468030, 0.433883739117558, 0.000000000000000] sage: [sin(RR(i)) for i in [0,pi/n,..,2pi]] [0.000000000000000, 0.433883739117558, 0.781831482468030, 0.974927912181824, 0.974927912181824, 0.781831482468030, 0.433883739117558, 1.22464679914735e-16, -0.433883739117558, -0.781831482468030, -0.974927912181824, -0.974927912181824, -0.781831482468030, -0.433883739117558, -2.44929359829471e-16]

A bug in function sine about symbolic computation in Sagemath 7.2?

sage: n=7
sage: [RR(sin(i)) for i in [0,pi/n,..,2pi]]
[0,pi/n,..,2*pi]]
[0.000000000000000,
 0.433883739117558,
 0.781831482468030,
 0.974927912181824,
 0.974927912181824,
 0.781831482468030,
 0.433883739117558,
 0.000000000000000,
 0.433883739117558,
 0.781831482468030,
 0.974927912181824,
 0.974927912181824,
 0.781831482468030,
 0.433883739117558,
 0.000000000000000]
sage: [sin(RR(i)) for i in [0,pi/n,..,2pi]]
[0,pi/n,..,2*pi]]
[0.000000000000000,
 0.433883739117558,
 0.781831482468030,
 0.974927912181824,
 0.974927912181824,
 0.781831482468030,
 0.433883739117558,
 1.22464679914735e-16,
 -0.433883739117558,
 -0.781831482468030,
 -0.974927912181824,
 -0.974927912181824,
 -0.781831482468030,
 -0.433883739117558,
 -2.44929359829471e-16]

-2.44929359829471e-16]

A bug in function sine about symbolic computation in Sagemath 7.2?

sage: n=7
sage: [RR(sin(i)) for i in [0,pi/n,..,2*pi]]
[0.000000000000000,
 0.433883739117558,
 0.781831482468030,
 0.974927912181824,
 0.974927912181824,
 0.781831482468030,
 0.433883739117558,
 0.000000000000000,
 0.433883739117558,
 0.781831482468030,
 0.974927912181824,
 0.974927912181824,
 0.781831482468030,
 0.433883739117558,
 0.000000000000000]
sage: [sin(RR(i)) for i in [0,pi/n,..,2*pi]]
[0.000000000000000,
 0.433883739117558,
 0.781831482468030,
 0.974927912181824,
 0.974927912181824,
 0.781831482468030,
 0.433883739117558,
 1.22464679914735e-16,
 -0.433883739117558,
 -0.781831482468030,
 -0.974927912181824,
 -0.974927912181824,
 -0.781831482468030,
 -0.433883739117558,
 -2.44929359829471e-16]

A bug in function sine about symbolic computation in Sagemath 7.2?

sage: n=7
sage: [RR(sin(i)) for i in [0,pi/n,..,2*pi]]
[0.000000000000000,
 0.433883739117558,
 0.781831482468030,
 0.974927912181824,
 0.974927912181824,
 0.781831482468030,
 0.433883739117558,
 0.000000000000000,
 0.433883739117558,
 0.781831482468030,
 0.974927912181824,
 0.974927912181824,
 0.781831482468030,
 0.433883739117558,
 0.000000000000000]
sage: [sin(RR(i)) for i in [0,pi/n,..,2*pi]]
[0.000000000000000,
 0.433883739117558,
 0.781831482468030,
 0.974927912181824,
 0.974927912181824,
 0.781831482468030,
 0.433883739117558,
 1.22464679914735e-16,
 -0.433883739117558,
 -0.781831482468030,
 -0.974927912181824,
 -0.974927912181824,
 -0.781831482468030,
 -0.433883739117558,
 -2.44929359829471e-16]