@@ -141,7 +141,7 @@ public double sqrtDouble(double value,
141
141
}
142
142
143
143
@ Specialization (guards = "!isNumber(value)" )
144
- public double acosh (Object value ,
144
+ public double sqrt (Object value ,
145
145
@ Cached ("create(__FLOAT__)" ) LookupAndCallUnaryNode dispatchFloat ,
146
146
@ Cached ("create()" ) SqrtNode sqrtNode ) {
147
147
Object result = dispatchFloat .executeObject (value );
@@ -1027,7 +1027,7 @@ public double asinDouble(double value,
1027
1027
}
1028
1028
1029
1029
@ Specialization (guards = "!isNumber(value)" )
1030
- public double acosh (Object value ,
1030
+ public double asin (Object value ,
1031
1031
@ Cached ("create(__FLOAT__)" ) LookupAndCallUnaryNode dispatchFloat ,
1032
1032
@ Cached ("create()" ) AsinNode asinNode ) {
1033
1033
Object result = dispatchFloat .executeObject (value );
@@ -1518,7 +1518,7 @@ public abstract static class PowNode extends PythonBinaryBuiltinNode {
1518
1518
if (leftFloat == PNone .NO_VALUE ) {
1519
1519
throw raise (TypeError , "must be real number, not %p" , left );
1520
1520
}
1521
- Object rightFloat = dispatchLeftFloat .executeObject (right );
1521
+ Object rightFloat = dispatchRightFloat .executeObject (right );
1522
1522
if (leftFloat == PNone .NO_VALUE ) {
1523
1523
throw raise (TypeError , "must be real number, not %p" , right );
1524
1524
}
@@ -1556,17 +1556,17 @@ public abstract static class Atan2Node extends PythonBinaryBuiltinNode {
1556
1556
1557
1557
@ Specialization
1558
1558
double atan2 (long left , long right ) {
1559
- return atan2DD (( double ) left , ( double ) right );
1559
+ return atan2DD (left , right );
1560
1560
}
1561
1561
1562
1562
@ Specialization
1563
1563
double atan2 (long left , double right ) {
1564
- return atan2DD (( double ) left , right );
1564
+ return atan2DD (left , right );
1565
1565
}
1566
1566
1567
1567
@ Specialization
1568
1568
double atan2 (double left , long right ) {
1569
- return atan2DD (left , ( double ) right );
1569
+ return atan2DD (left , right );
1570
1570
}
1571
1571
1572
1572
@ Specialization
@@ -1576,7 +1576,7 @@ public abstract static class Atan2Node extends PythonBinaryBuiltinNode {
1576
1576
1577
1577
@ Specialization
1578
1578
double atan2 (PInt left , long right ) {
1579
- return atan2DD (left .doubleValue (), ( double ) right );
1579
+ return atan2DD (left .doubleValue (), right );
1580
1580
}
1581
1581
1582
1582
@ Specialization
@@ -1586,7 +1586,7 @@ public abstract static class Atan2Node extends PythonBinaryBuiltinNode {
1586
1586
1587
1587
@ Specialization
1588
1588
double atan2 (long left , PInt right ) {
1589
- return atan2DD (( double ) left , right .doubleValue ());
1589
+ return atan2DD (left , right .doubleValue ());
1590
1590
}
1591
1591
1592
1592
@ Specialization
@@ -1608,7 +1608,7 @@ public abstract static class Atan2Node extends PythonBinaryBuiltinNode {
1608
1608
if (leftFloat == PNone .NO_VALUE ) {
1609
1609
throw raise (TypeError , "must be real number, not %p" , left );
1610
1610
}
1611
- Object rightFloat = dispatchLeftFloat .executeObject (right );
1611
+ Object rightFloat = dispatchRightFloat .executeObject (right );
1612
1612
if (leftFloat == PNone .NO_VALUE ) {
1613
1613
throw raise (TypeError , "must be real number, not %p" , right );
1614
1614
}
0 commit comments