MonadicOperationAtan

com.phasmidsoftware.number.core.inner.MonadicOperationAtan
case class MonadicOperationAtan(xSign: Int, ySign: Int) extends MonadicOperation

MonadicOperation to yield the arctangent of a Number.

Value parameters

sign

an Int which will distinguish between results in the four quadrants.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Operation
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def modulateAngle(ry: Try[Rational], flip: Boolean): Try[Rational]

Adjusts the given angle encapsulated in a Try[Rational], potentially flipping it and normalizing its value.

Adjusts the given angle encapsulated in a Try[Rational], potentially flipping it and normalizing its value.

Value parameters

flip

A Boolean value that determines whether the angle should be flipped (negated).

ry

The angle wrapped in a Try[Rational], which may be adjusted.

Attributes

Returns

A Try[Rational] containing the modulated angle value, or a failure if the input computation fails.

Inherited methods

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

Method to yield a set of functions which can be applied to Int, Rational, or Double values for this MonadicOperation.

Method to yield a set of functions which can be applied to Int, Rational, or Double values for this MonadicOperation.

Attributes

Returns

a set of three functions: Int=>Try[Int], Rational=>Try[Rational], Double=>Try[Double].

val fuzz: Option[Int]

Relative precision, as used by Fuzziness.createFuzz. If None, then this operation does not introduce any precision loss.

Relative precision, as used by Fuzziness.createFuzz. If None, then this operation does not introduce any precision loss.

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.

The general formula for a monadic operation is: x * dfByDx(x) / f(x)

Attributes