InversePower

com.phasmidsoftware.number.core.inner.InversePower
See theInversePower companion trait
object InversePower

Companion object for the NthRoot trait, providing utility methods for working with NthRoot instances.

Attributes

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

Members list

Value members

Concrete methods

def unapply(arg: InversePower): Option[Rational]

Extractor method to retrieve the root degree from a NthRoot instance.

Extractor method to retrieve the root degree from a NthRoot instance.

This method is used for pattern matching to extract the integer root degree associated with the given NthRoot object.

Value parameters

arg

the NthRoot instance from which to extract the root degree.

Attributes

Returns

an Option containing the root degree as an Int, or None if the extraction fails.