trait NRoot[A] extends Any
This is a type class for types with n-roots. The value returned by nroot
and sqrt are only guaranteed to be approximate answers (except in the case
of Real).
Also, generally nroots where n is even are not defined for
negative numbers. The behaviour is undefined if this is attempted. It would
be nice to ensure an exception is raised, but some types may defer
computation and testing if a value is negative may not be ideal. So, do not
count on ArithmeticExceptions to save you from bad arithmetic!
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- NRoot
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
equals(arg0: Any): Boolean
- Definition Classes
- Any
-
def
hashCode(): Int
- Definition Classes
- Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def sqrt(a: A): A
-
def
toString(): String
- Definition Classes
- Any