Fix minor problems occured after merge

This commit is contained in:
Iaroslav 2020-06-14 00:06:12 +07:00
parent 76ad027460
commit 48b688b6b1
No known key found for this signature in database
GPG Key ID: 46E15E4A31B3BCD7

View File

@ -20,20 +20,18 @@ interface ExtendedFieldOperations<T> :
PowerOperations.SQRT_OPERATION -> sqrt(arg)
ExponentialOperations.EXP_OPERATION -> exp(arg)
ExponentialOperations.LN_OPERATION -> ln(arg)
else -> super.unaryOperation(operation, arg)
else -> super<InverseTrigonometricOperations>.unaryOperation(operation, arg)
}
}
interface ExtendedField<T> : ExtendedFieldOperations<T>, Field<T> {
override fun rightSideNumberOperation(operation: String, left: T, right: Number): T {
return when (operation) {
override fun rightSideNumberOperation(operation: String, left: T, right: Number): T = when (operation) {
PowerOperations.POW_OPERATION -> power(left, right)
else -> super.rightSideNumberOperation(operation, left, right)
}
}
}
}
/**
* Real field element wrapping double.
*