Browse Source

Rename c1 to one.

master
Andrius Štikonas 4 years ago
parent
commit
ddf89b6f80
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      scrambling.cpp

+ 3
- 3
scrambling.cpp View File

@@ -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