Hello,
Unfortunately, I think this is a "bug/strange feature" of java.lang.Math, which is used to perform the exponentiation. java.lang.Math.pow(-1.0,(1.0/3.0)) returns NaN which is an error.
As I have no idea of how to implement this without Math.pow, I will just add a not in DoubleEvaluator documentation.
Best Regards,
Jean-Marc Astesana
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Unfortunately, I think this is a "bug/strange feature" of java.lang.Math, which is used to perform the exponentiation. java.lang.Math.pow(-1.0,(1.0/3.0)) returns NaN which is an error.
As I have no idea of how to implement this without Math.pow, I will just add a not in DoubleEvaluator documentation.
Best Regards,
Jean-Marc Astesana