mirror of
https://github.com/chylex/Query.git
synced 2025-07-06 18:04:33 +02:00
Compare commits
3 Commits
2b9d5bba8f
...
d52ec8a615
Author | SHA1 | Date | |
---|---|---|---|
d52ec8a615 | |||
5d640de7e5 | |||
d69c4672d6 |
@ -35,7 +35,7 @@ public abstract record Number : IAdditionOperators<Number, Number, Number>,
|
|||||||
|
|
||||||
public override Number Pow(Number exponent) {
|
public override Number Pow(Number exponent) {
|
||||||
if (exponent is Rational { Value: {} rationalExponent }) {
|
if (exponent is Rational { Value: {} rationalExponent }) {
|
||||||
Fraction fractionExponent = rationalExponent.GetImproperFraction();
|
Fraction fractionExponent = Fraction.ReduceToProperFraction(rationalExponent.GetImproperFraction());
|
||||||
|
|
||||||
if (fractionExponent.Numerator >= 0 && fractionExponent.Denominator == 1) {
|
if (fractionExponent.Numerator >= 0 && fractionExponent.Denominator == 1) {
|
||||||
try {
|
try {
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Authors>chylex</Authors>
|
<Authors>chylex</Authors>
|
||||||
<Version>2.0.0.0</Version>
|
<Version>2.1.0.0</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
Loading…
Reference in New Issue
Block a user