Skip to content

Commit 7b134c6

Browse files
author
Ash Pook
committed
Version. Comments.
1 parent b428fd6 commit 7b134c6

File tree

12 files changed

+20
-20
lines changed

12 files changed

+20
-20
lines changed

Abacus.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
<id>Abacus</id>
55
<title>Abacus</title>
6-
<version>1.0.1</version>
6+
<version>1.0.2</version>
77
<authors>Ash Pook</authors>
88
<owners>Ash Pook</owners>
99
<licenseUrl>https://raw.githubusercontent.com/sungiant/abacus/master/LICENSE</licenseUrl>

source/abacus/gen/main/Abacus.X.t4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
55
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
66
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
7-
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
7+
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
88
// │ │ \\
99
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
1010
// │ │ \\

source/abacus/gen/main/Fixed.X.t4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
result.numerator = -f.numerator;
161161
<#= ftd.RawTypeName #> sr = result.numerator >> (<#= ftd.BitCount #> - 1); // sign of result
162162
// Branchless saturation - the only input that can overflow is MinValue
163-
// as there is no +ve equivalent, in this case saturate to MaxValue.
163+
// as there is no positive equivalent, in this case saturate to MaxValue.
164164
result.numerator = (result.numerator & ~(sr & s)) | ((sr & s) & <#= ftd.RawTypeName #>.MaxValue);
165165
}
166166

@@ -229,7 +229,7 @@
229229
result.numerator -= s;
230230
<#= ftd.RawTypeName #> sr = result.numerator >> (<#= ftd.BitCount #> - 1); // sign of result
231231
// Branchless saturation - the only input that can overflow is MinValue
232-
// as there is no +ve equivalent, in this case saturate to MaxValue.
232+
// as there is no positive equivalent, in this case saturate to MaxValue.
233233
result.numerator = (result.numerator & ~(sr & s)) | ((sr & s) & <#= ftd.RawTypeName #>.MaxValue);
234234
}
235235

@@ -310,7 +310,7 @@
310310
}
311311

312312
public static void ArcTan (ref <#= ftd.TypeName #> f, out <#= ftd.TypeName #> result) {
313-
// ArcTan approximation implemented using appropriate Tayor series expansion: https://proofwiki.org/wiki/Power_Series_Expansion_for_Real_Arctangent_Function
313+
// ArcTan approximation implemented using appropriate Tayor series expansion: http://people.math.sc.edu/girardi/m142/handouts/10sTaylorPolySeries.pdf
314314
// best accuracy for which falls within the range of -1 <= f <= 1, see: https://spin.atomicobject.com/2012/04/24/implementing-advanced-math-functions/
315315
// Valid input for the ArcTan function falls within the range of -∞ < f < ∞,
316316
// trig identities are used to facilitate performing the approximation within the most accurate range: https://en.wikipedia.org/wiki/Inverse_trigonometric_functions

source/abacus/gen/test/Abacus.X.Tests.t4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
55
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
66
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
7-
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
7+
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
88
// │ │ \\
99
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
1010
// │ │ \\

source/abacus/src/main/Abacus.Double.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
55
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
66
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
7-
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
7+
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
88
// │ │ \\
99
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
1010
// │ │ \\

source/abacus/src/main/Abacus.Fixed32.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
55
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
66
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
7-
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
7+
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
88
// │ │ \\
99
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
1010
// │ │ \\
@@ -214,7 +214,7 @@ public static void Negate (ref Fixed32 f, out Fixed32 result) {
214214
result.numerator = -f.numerator;
215215
Int32 sr = result.numerator >> (32 - 1); // sign of result
216216
// Branchless saturation - the only input that can overflow is MinValue
217-
// as there is no +ve equivalent, in this case saturate to MaxValue.
217+
// as there is no positive equivalent, in this case saturate to MaxValue.
218218
result.numerator = (result.numerator & ~(sr & s)) | ((sr & s) & Int32.MaxValue);
219219
}
220220

@@ -283,7 +283,7 @@ public static void Abs (ref Fixed32 f, out Fixed32 result) {
283283
result.numerator -= s;
284284
Int32 sr = result.numerator >> (32 - 1); // sign of result
285285
// Branchless saturation - the only input that can overflow is MinValue
286-
// as there is no +ve equivalent, in this case saturate to MaxValue.
286+
// as there is no positive equivalent, in this case saturate to MaxValue.
287287
result.numerator = (result.numerator & ~(sr & s)) | ((sr & s) & Int32.MaxValue);
288288
}
289289

@@ -364,7 +364,7 @@ public static void ArcCos (ref Fixed32 f, out Fixed32 result) {
364364
}
365365

366366
public static void ArcTan (ref Fixed32 f, out Fixed32 result) {
367-
// ArcTan approximation implemented using appropriate Tayor series expansion: https://proofwiki.org/wiki/Power_Series_Expansion_for_Real_Arctangent_Function
367+
// ArcTan approximation implemented using appropriate Tayor series expansion: http://people.math.sc.edu/girardi/m142/handouts/10sTaylorPolySeries.pdf
368368
// best accuracy for which falls within the range of -1 <= f <= 1, see: https://spin.atomicobject.com/2012/04/24/implementing-advanced-math-functions/
369369
// Valid input for the ArcTan function falls within the range of -∞ < f < ∞,
370370
// trig identities are used to facilitate performing the approximation within the most accurate range: https://en.wikipedia.org/wiki/Inverse_trigonometric_functions

source/abacus/src/main/Abacus.Fixed64.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
55
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
66
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
7-
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
7+
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
88
// │ │ \\
99
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
1010
// │ │ \\
@@ -215,7 +215,7 @@ public static void Negate (ref Fixed64 f, out Fixed64 result) {
215215
result.numerator = -f.numerator;
216216
Int64 sr = result.numerator >> (64 - 1); // sign of result
217217
// Branchless saturation - the only input that can overflow is MinValue
218-
// as there is no +ve equivalent, in this case saturate to MaxValue.
218+
// as there is no positive equivalent, in this case saturate to MaxValue.
219219
result.numerator = (result.numerator & ~(sr & s)) | ((sr & s) & Int64.MaxValue);
220220
}
221221

@@ -284,7 +284,7 @@ public static void Abs (ref Fixed64 f, out Fixed64 result) {
284284
result.numerator -= s;
285285
Int64 sr = result.numerator >> (64 - 1); // sign of result
286286
// Branchless saturation - the only input that can overflow is MinValue
287-
// as there is no +ve equivalent, in this case saturate to MaxValue.
287+
// as there is no positive equivalent, in this case saturate to MaxValue.
288288
result.numerator = (result.numerator & ~(sr & s)) | ((sr & s) & Int64.MaxValue);
289289
}
290290

@@ -365,7 +365,7 @@ public static void ArcCos (ref Fixed64 f, out Fixed64 result) {
365365
}
366366

367367
public static void ArcTan (ref Fixed64 f, out Fixed64 result) {
368-
// ArcTan approximation implemented using appropriate Tayor series expansion: https://proofwiki.org/wiki/Power_Series_Expansion_for_Real_Arctangent_Function
368+
// ArcTan approximation implemented using appropriate Tayor series expansion: http://people.math.sc.edu/girardi/m142/handouts/10sTaylorPolySeries.pdf
369369
// best accuracy for which falls within the range of -1 <= f <= 1, see: https://spin.atomicobject.com/2012/04/24/implementing-advanced-math-functions/
370370
// Valid input for the ArcTan function falls within the range of -∞ < f < ∞,
371371
// trig identities are used to facilitate performing the approximation within the most accurate range: https://en.wikipedia.org/wiki/Inverse_trigonometric_functions

source/abacus/src/main/Abacus.Single.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
55
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
66
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
7-
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
7+
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
88
// │ │ \\
99
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
1010
// │ │ \\

source/abacus/src/test/Abacus.Double.Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
55
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
66
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
7-
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
7+
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
88
// │ │ \\
99
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
1010
// │ │ \\

source/abacus/src/test/Abacus.Fixed32.Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// │ / /_\ \| __ \\__ \ _/ ___\| | \/ ___/ │ \\
55
// │ / | \ \_\ \/ __ \\ \___| | /\___ \ │ \\
66
// │ \____|__ /___ (____ /\___ >____//____ > │ \\
7-
// │ \/ \/ \/ \/ \/ v1.0.1 │ \\
7+
// │ \/ \/ \/ \/ \/ v1.0.2 │ \\
88
// │ │ \\
99
// │ Fast, efficient, cross platform, cross precision, maths library. │ \\
1010
// │ │ \\

0 commit comments

Comments
 (0)