Improve convergence in Infineon Power MOS.
0**something is 0
This commit is contained in:
parent
27e63add5e
commit
0cd676ff18
|
|
@ -70,7 +70,9 @@ PTpower(double arg1, double arg2)
|
|||
{
|
||||
double res;
|
||||
if (newcompat.lt) {
|
||||
if(arg1 >= 0)
|
||||
if (arg1 == 0)
|
||||
res = 0;
|
||||
else if(arg1 > 0)
|
||||
res = pow(arg1, arg2);
|
||||
else {
|
||||
/* If arg2 is quasi an integer, round it to have pow not fail
|
||||
|
|
|
|||
Loading…
Reference in New Issue