Interface RealProvider
- All Superinterfaces:
AlgorithmProvider
- All Known Implementing Classes:
CoreRealProvider, NativeRealProvider
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 Summary
Modifier and TypeMethodDescriptioncreate(BigDecimal value) Creates a Real instance from a BigDecimal.default StringReturns the unique category of the algorithm.default RealgetConstant(String name) Returns a mathematical constant by name (e.g., "pi", "e").Creates a Real instance from a String.Methods inherited from interface AlgorithmProvider
description, getMetadata, getName, getPriority, isAvailable, score, shutdown
-
Method Details
-
create
Creates a Real instance from a BigDecimal. -
of
-
getConstant
-
getAlgorithmType
Description copied from interface:AlgorithmProviderReturns the unique category of the algorithm.- Specified by:
getAlgorithmTypein interfaceAlgorithmProvider
-