Example #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()
Example #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()
Example #3
0
 def f(z): 
     return sqrt(_sage_const_1 /_sage_const_3 )*z**_sage_const_2  + i/_sage_const_3 
Example #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 )]
Example #5
0
 def f(z):
     return sqrt(_sage_const_1 / _sage_const_3
                 ) * z**_sage_const_2 + i / _sage_const_3
Example #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)]