MonadicOperationSin

com.phasmidsoftware.number.core.inner.MonadicOperationSin

MonadicOperation to calculate the sine of a Number. The number is a factor of pi, i.e. it is in radians.

NOTE that this evaluator for sine is not as useful as the evaluator in the Number class. That's because this type of operation does not change the factor.

CONSIDER allow Monadic operations to change factor.

See https://en.wikipedia.org/wiki/List_of_trigonometric_identities

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Operation
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
type MirroredMonoType = this.type

The mirrored *-type.

The mirrored *-type.

Attributes

Inherited from:
Singleton
type MirroredType = this.type

Attributes

Inherited from:
Singleton

Inherited and Abstract types

type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Inherited methods

def fromProduct(p: Product): MirroredMonoType

Creates a new instance of type T with elements taken from product p.

Creates a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product

Concrete fields

A collection of functions representing monadic operations for sine computation:

A collection of functions representing monadic operations for sine computation:

  • sinInt: A function to compute sine for Integer values.
  • A composite function combining sinRatExact for exact Rational computation and sinRatInexact for approximate Rational computation, returning the first successful result.
  • sinDouble: A function to compute sine for Double values.

Attributes

val fuzz: Option[Int]

Relative precision, as used by Fuzziness.createFuzz.

Relative precision, as used by Fuzziness.createFuzz.

Attributes

val relativeFuzz: Double => Double

Function to yield the relative fuzz of the output Number, given the relative fuzz of the input Number.

Function to yield the relative fuzz of the output Number, given the relative fuzz of the input Number.

Attributes