Browse Source

Rename c1 to one.

master
Andrius Štikonas 6 years ago
parent
commit
ddf89b6f80
  1. 6
      scrambling.cpp

6
scrambling.cpp

@ -87,12 +87,12 @@ std::complex<double> crossRatio (std::complex<double> x1, std::complex<double> x
double Fitzpatrick(std::complex<double> z, std::complex<double> zbar, double phase)
{
// phase is necessary to take into account nontrivial monodromy
std::complex<double> c1(1, 0); // one as a complex number
std::complex<double> one = 1; // one as a complex number
std::complex<double> i(0,1); // imaginary unit
double alphaExpr = 0.5-alpha/2;
std::complex<double> exponent1 = exp(phase*i*alphaExpr);
std::complex<double> exponent2 = exp(phase*i*alpha);
return real(exponent1 * pow(z, alphaExpr) * pow(zbar, alphaExpr)
* (c1 - exponent2 * pow(z, alpha)) * (c1 - pow(zbar, alpha))
/ ( alpha*alpha * (c1-z) * (c1-zbar) ) );
* (one - exponent2 * pow(z, alpha)) * (one - pow(zbar, alpha))
/ ( alpha*alpha * (one-z) * (one-zbar) ) );
}
Loading…
Cancel
Save