Update documentation of NumberAlgebra

This commit is contained in:
Iaroslav Postovalov 2020-08-05 18:44:28 +07:00
parent 7d32fe0af8
commit 4c39b98017
No known key found for this signature in database
GPG Key ID: 70D5F4DCB0972F1B

View File

@ -4,7 +4,7 @@ import kotlin.math.abs
import kotlin.math.pow as kpow
/**
* Advanced Number-like field that implements basic operations
* Advanced Number-like semifield that implements basic operations.
*/
interface ExtendedFieldOperations<T> :
InverseTrigonometricOperations<T>,
@ -27,6 +27,10 @@ interface ExtendedFieldOperations<T> :
}
}
/**
* Advanced Number-like field that implements basic operations.
*/
interface ExtendedField<T> : ExtendedFieldOperations<T>, Field<T> {
override fun rightSideNumberOperation(operation: String, left: T, right: Number): T = when (operation) {
PowerOperations.POW_OPERATION -> power(left, right)