Approximatable

com.phasmidsoftware.number.core.numerical.Approximatable

The Approximatable trait provides a mechanism to compute an approximate numerical value of a numerical entity. It is intended for cases where the magnitude is required, but it doesn't need to be exact.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Field
trait Multivariate
trait Complex
class BaseComplex
class ComplexPolar
class Real
object NaN
Show all

Members list

Value members

Abstract methods

def approximation: Option[Real]

Computes and returns an approximate numerical value for this Approximatable. All Fields, PowerSeries and Expressions that implement this method should work except for complex quantities.

Computes and returns an approximate numerical value for this Approximatable. All Fields, PowerSeries and Expressions that implement this method should work except for complex quantities.

Attributes

Returns

if possible, returns a Real representing the approximation of this expression.