Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.
input:
z := 0 to ½PI
Ma, Mb := 0 to ∞
Pa, Pb := 0 to 2PI
algorithm:
r = Ma * sin(Pa)
i = Mb * sin(Pb)
Sr = r + i
Dr = r - i
r = Ma * cos(Pa)
i = Mb * cos(Pb)
Si = r + i
Di = r - i
r = -cos(z)
i = -sin(z)
Tr = r * Si + i * Dr
Ti = i * Si - r * Dr
output:
Ra := Sr + Tr
Ia := Ti + Di
Rb := Sr - Tr
RI := Ti - Di
Unless you can establish some relationship between the inputs, there may not be much more you can do than to reduce half of the trigonometric functions to sqrt functions.
Or if you can transform your inputs so that instead of working with Ma,Mb,Pa,Pb,
you're working with inputs that correspond to Ma*sin(Pa),Ma*cos(Pa),Mb*s
But that may depend on refactoring other parts of the algorithm that use this part.