mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Update complexToPolarFunc.py
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
from .__init__ import *
|
from .__init__ import *
|
||||||
|
|
||||||
def polar(minRealImaginaryNum = -20, maxRealImaginaryNum = 20):
|
def complexToPolarFunc(minRealImaginaryNum = -20, maxRealImaginaryNum = 20):
|
||||||
num = complex(random.randint(minRealImaginaryNum, maxRealImaginaryNum), random.randint(minRealImaginaryNum, maxRealImaginaryNum))
|
num = complex(random.randint(minRealImaginaryNum, maxRealImaginaryNum), random.randint(minRealImaginaryNum, maxRealImaginaryNum))
|
||||||
a= num.real
|
a= num.real
|
||||||
b= num.imag
|
b= num.imag
|
||||||
@@ -11,3 +11,5 @@ def polar(minRealImaginaryNum = -20, maxRealImaginaryNum = 20):
|
|||||||
solution = plr
|
solution = plr
|
||||||
return problem, solution
|
return problem, solution
|
||||||
|
|
||||||
|
|
||||||
|
complex_to_polar = Generator("Complex To Polar Form", 92, "rexp(itheta) = ", "plr", complexToPolarFunc)
|
||||||
|
|||||||
Reference in New Issue
Block a user