Compare commits

..
2 Commits
Author SHA1 Message Date
chylex 2b9d5bba8f Preserve rational number arithmetic for roots of perfect powers 2025-07-02 21:15:15 +02:00
chylex 8380aaa9f8 Reformat code 2025-07-02 21:01:32 +02:00
3 changed files with 88 additions and 88 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ public abstract record Number : IAdditionOperators<Number, Number, Number>,
public override Number Pow(Number exponent) {
if (exponent is Rational { Value: {} rationalExponent }) {
Fraction fractionExponent = Fraction.ReduceToProperFraction(rationalExponent.GetImproperFraction());
Fraction fractionExponent = rationalExponent.GetImproperFraction();
if (fractionExponent.Numerator >= 0 && fractionExponent.Denominator == 1) {
try {
+1 -1
View File
@@ -8,7 +8,7 @@
<PropertyGroup>
<Authors>chylex</Authors>
<Version>2.1.0.0</Version>
<Version>2.0.0.0</Version>
</PropertyGroup>
<PropertyGroup>