Field

com.phasmidsoftware.number.core.numerical.Field
See theField companion trait
object Field

Companion object Field provides utility methods and implicit conversions for the Field type. It also acts as a container for implicit definitions and helpers relating to the Field type.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Field.type

Members list

Type members

Classlikes

object FieldIsFuzzy extends Fuzzy[Field]

Definition of concrete (implicit) type class object for Field being Fuzzy.

Definition of concrete (implicit) type class object for Field being Fuzzy.

Attributes

Supertypes
trait Fuzzy[Field]
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def apply(value: Value, factor: Factor): Field

Creates a Field instance based on the provided Value and Factor.

Creates a Field instance based on the provided Value and Factor.

Value parameters

factor

the Factor to be used in the creation of the Field.

value

the Value to be used in the creation of the Field.

Attributes

Returns

a Field instance constructed from the given Value and Factor.

Attempt to force the given field to be a Number. Because this may throw an Exception, it is much better to use asNumber, an instance method of Field.

Attempt to force the given field to be a Number. Because this may throw an Exception, it is much better to use asNumber, an instance method of Field.

Value parameters

field

the given field.

Attributes

Returns

a Number if field is a Number, otherwise, this will throw a CoreException.

Implicits

Implicits

Implicit converter from Rational value to a Field value.

Implicit converter from Rational value to a Field value.

Value parameters

r

the Rational value to be converted.

Attributes

Returns

a Field representation of the provided Rational value.