Interface RealProvider

All Superinterfaces:
AlgorithmProvider
All Known Implementing Classes:
CoreRealProvider, NativeRealProvider

public interface RealProvider extends AlgorithmProvider
Service Provider Interface for high-precision Real number implementations.

This allows the core module to use native implementations (like MPFR via NativeRealBig) when available, while falling back to the default RealBig (BigDecimalMath) otherwise.

Since:
2.0
Author:
Gemini AI (Google DeepMind)
  • Method Details

    • create

      Real create(BigDecimal value)
      Creates a Real instance from a BigDecimal.
    • of

      Real of(String value)
      Creates a Real instance from a String.
    • getConstant

      default Real getConstant(String name)
      Returns a mathematical constant by name (e.g., "pi", "e"). Implementations should return a Real with at least the requested precision.
    • getAlgorithmType

      default String getAlgorithmType()
      Description copied from interface: AlgorithmProvider
      Returns the unique category of the algorithm.
      Specified by:
      getAlgorithmType in interface AlgorithmProvider