Beispiel #1
0
 def test(self):
     """
     u = [e, pi, sqrt(2)]
     time Tuples(u,3).cardinality()
     """
     from sage.all_cmdline import Integer, sqrt, e, pi, Tuples 
     for _ in xrange(self.rounds):
         _sage_const_3 = Integer(3); 
         _sage_const_2 = Integer(2)
         u = [e, pi, sqrt(_sage_const_2 )]
         Tuples(u,_sage_const_3 ).cardinality()
Beispiel #2
0
 def test(self):
     """
     u = [e, pi, sqrt(2)]
     time Tuples(u,3).cardinality()
     """
     from sage.all_cmdline import Integer, sqrt, e, pi, Tuples
     for _ in xrange(self.rounds):
         _sage_const_3 = Integer(3)
         _sage_const_2 = Integer(2)
         u = [e, pi, sqrt(_sage_const_2)]
         Tuples(u, _sage_const_3).cardinality()
Beispiel #3
0
 def f(z): 
     return sqrt(_sage_const_1 /_sage_const_3 )*z**_sage_const_2  + i/_sage_const_3 
Beispiel #4
0
 def calibrate(self):
     from sage.all_cmdline import Integer, sqrt, e, pi, Tuples 
     for _ in xrange(self.rounds):
         _sage_const_3 = Integer(3); 
         _sage_const_2 = Integer(2)
         u = [e, pi, sqrt(_sage_const_2 )]
Beispiel #5
0
 def f(z):
     return sqrt(_sage_const_1 / _sage_const_3
                 ) * z**_sage_const_2 + i / _sage_const_3
Beispiel #6
0
 def calibrate(self):
     from sage.all_cmdline import Integer, sqrt, e, pi, Tuples
     for _ in xrange(self.rounds):
         _sage_const_3 = Integer(3)
         _sage_const_2 = Integer(2)
         u = [e, pi, sqrt(_sage_const_2)]