Closed axkr closed 4 years ago
For questions, please use the new forum at https://forum.orekit.org/c/hipparchus-usage/.
There are not (yet) similar functions in Complex. We have added quite a large number of functions so Complex
now implements the new CalculusFieldElement
interface, for the sake of solving issue #67. The closest function to your second need would be round
, but it is in the RealFieldElement
interface, not in the CalculusFieldElement
class. We could move it up as explained in the comment I wrote here.
We could implement the first method directly in Complex
, without reference to any higher level interface.
Are there some similar utility functions for the
Complex
number type as in the GuavaDoubleMath
utility class, if the imaginary part is0.0
?isMathematicalInteger
https://github.com/google/guava/blob/45958948bea8f7aaf38c1a3dd200ce0263c0bcfa/android/guava/src/com/google/common/math/DoubleMath.java#L286roundToInt
: https://github.com/google/guava/blob/45958948bea8f7aaf38c1a3dd200ce0263c0bcfa/android/guava/src/com/google/common/math/DoubleMath.java#L131