Skip to content

Commit 7aa8ac5

Browse files
committed
fix culture errors on erf function constants
1 parent 8abee29 commit 7aa8ac5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

PhaseExplorer/Common.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,18 +156,18 @@ unsafe public static void Copy(Pixbuf dst, byte* src)
156156
}
157157
}
158158

159-
public static CultureInfo ci = new CultureInfo("en-US");
159+
public static CultureInfo ci = new CultureInfo("en-US");
160160

161161
// see: https://www.johndcook.com/blog/csharp_erf/
162162
public static double Erf(double x)
163163
{
164164
// constants
165-
double a1 = Convert.ToDouble("0.254829592", ci);
166-
double a2 = Convert.ToDouble("-0.284496736", ci);
167-
double a3 = Convert.ToDouble("1.421413741", ci);
168-
double a4 = Convert.ToDouble("-1.453152027", ci);
169-
double a5 = Convert.ToDouble("1.061405429", ci);
170-
double p = Convert.ToDouble("0.3275911", ci);
165+
double a1 = Convert.ToDouble("0.254829592", ci);
166+
double a2 = Convert.ToDouble("-0.284496736", ci);
167+
double a3 = Convert.ToDouble("1.421413741", ci);
168+
double a4 = Convert.ToDouble("-1.453152027", ci);
169+
double a5 = Convert.ToDouble("1.061405429", ci);
170+
double p = Convert.ToDouble("0.3275911", ci);
171171

172172
// Save the sign of x
173173
int sign = 1;

0 commit comments

Comments
 (0)