3dce1042ff53dbcbc3820f7032c2b9765f5ad04b,mathics/builtin/randomnumbers.py,RandomComplex,apply,#RandomComplex#Any#Any#Any#,474

Before Change


            return evaluation.message("RandomComplex", "unifr", Expression("List", zmin, zmax))

        with RandomEnv(evaluation) as rand:
            return Complex(rand.randreal(min_value.real, max_value.real),
                           rand.randreal(min_value.imag, max_value.imag))

    def apply_list(self, zmin, zmax, ns, evaluation):
        "RandomComplex[{zmin_, zmax_}, ns_]"
        expr = Expression("RandomComplex", Expression("List", zmin, zmax), ns)

After Change



        with RandomEnv(evaluation) as rand:
            real = Real(rand.randreal(min_value.real, max_value.real))
            imag = Real(rand.randreal(min_value.imag, max_value.imag))
            return Complex(real, imag)

    def apply_list(self, zmin, zmax, ns, evaluation):
        "RandomComplex[{zmin_, zmax_}, ns_]"
        expr = Expression("RandomComplex", Expression("List", zmin, zmax), ns)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mathics/Mathics
Commit Name: 3dce1042ff53dbcbc3820f7032c2b9765f5ad04b
Time: 2016-08-05
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/randomnumbers.py
Class Name: RandomComplex
Method Name: apply


Project Name: mathics/Mathics
Commit Name: dd997314c570a4250449d4889d723982cb32d02b
Time: 2016-08-16
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/image.py
Class Name: ImageData
Method Name: apply


Project Name: mathics/Mathics
Commit Name: eb9ddab4ba9d032588fc40e6c4616338d7eb672b
Time: 2016-08-24
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/image.py
Class Name: PixelValue
Method Name: apply