Skip to content

Commit e79926b

Browse files
Fixed incorrect acot math!!!
1 parent b75b459 commit e79926b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vcell-math/src/main/java/cbit/vcell/parser/MathUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static double acosh(double arg){
4747
}
4848

4949
static double acot(double arg){
50-
return MathUtil.atan(1.0/arg);
50+
return (AccurateMath.PI - (2*MathUtil.atan(arg)))/2.0;
5151
}
5252

5353
static double acoth(double arg){

0 commit comments

Comments
 (0)