Commit Graph

91 Commits

Author SHA1 Message Date
Alex Dyachenko
d895d98428 Updated XML documents to match MPIR 2.7.2 documentation, and added mixed comparisons between rationals and integers based on the new mpq_cmp_z function. 2015-12-23 14:29:26 -05:00
Alex Dyachenko
b006a3b4d9 Upgraded MPIR.Net solution to VS2013. Cleaned up all compiler warnings. 2015-12-23 09:10:58 -05:00
Alex Dyachenko
7f148ac675 Comments cleaned up 2015-12-22 15:43:35 -05:00
Alex Dyachenko
97a8cc896d Fixed unit tests broken after the merge. 3 tests broken due to MPIR behavior (FitsUxxx returns false for -0.9) 2015-05-23 20:36:51 -04:00
Alex Dyachenko
3ec06bfc51 Merge branch 'master' of github.com:adyache/mpir
Conflicts:
	mpir.net/mpir.net-tests/HugeFloatTests/Arithmetic.cs
	mpir.net/mpir.net-tests/HugeFloatTests/Assignment.cs
	mpir.net/mpir.net-tests/HugeFloatTests/Comparisons.cs
	mpir.net/mpir.net-tests/HugeFloatTests/ConstructionAndDisposal.cs
	mpir.net/mpir.net-tests/HugeFloatTests/Conversions.cs
	mpir.net/mpir.net-tests/HugeFloatTests/ExpressionTests.cs
	mpir.net/mpir.net-tests/HugeFloatTests/IO.cs
	mpir.net/mpir.net-tests/Utilities/Accessors.cs
	mpir.net/mpir.net/HugeFloat.cpp
	mpir.net/mpir.net/HugeFloat.h
2015-05-23 20:36:01 -04:00
Alex Dyachenko
44fcd74a88 Pre-merge cleanup 2015-05-21 22:00:31 -04:00
Alex Dyachenko
5ef1d11323 Float size checks and ToDouble(out exp). Apparently duplicate work, committing before merging from remote. 2015-05-21 21:39:47 -04:00
Alex Dyachenko
4770c42686 Tests for float arithmetic, expressions, IO methods 2015-05-21 17:18:25 -04:00
Alex Dyachenko
bf044dc564 Float assignment tests 2014-11-23 22:50:12 -05:00
Alex Dyachenko
aaa7b56e70 Float comparison tests. Added construction and assignment of floats from rationals and vice versa. 2014-11-23 22:34:20 -05:00
Alex Dyachenko
a82fecf846 Float conversion tests 2014-11-20 08:18:15 -05:00
Alex Dyachenko
d74453427c Float construction/disposal tests. Implemented float ToString(). 2014-11-19 12:51:21 -05:00
Alex Dyachenko
76907497f0 Float Random methods. 2 TODOs. 2014-06-27 16:28:09 -04:00
Alex Dyachenko
11e33c7140 Float IsInteger 2014-06-27 12:41:46 -04:00
Alex Dyachenko
cd25b5b35c Float size checks. Three broken tests due to MPIR behavior, bug logged 2014-06-27 10:54:19 -04:00
Alex Dyachenko
35a2222d95 Assignment float-to-rational 2014-06-27 10:53:40 -04:00
Alex Dyachenko
94a9578826 Float Rounding 2014-06-27 09:35:37 -04:00
Alex Dyachenko
d161281a47 Float IO - Read implementation. Also updated construction and assignment to make all string conversions consistent. MPIR 2.7.0 Section 7.7 Completed. 2014-06-25 16:22:37 -04:00
Alex Dyachenko
0432170047 Float IO tests and Write implementation 2014-06-25 15:10:46 -04:00
Alex Dyachenko
20f17f9176 Float to limb or double. MPIR 2.7.0 sections 7.1-7.6 completed. 2014-06-25 12:16:40 -04:00
Alex Dyachenko
dead3bb7d1 Float expression tests 2014-06-18 11:15:29 -04:00
Alex Dyachenko
f971feae43 Float conversion tests and full implementation of ToString() 2014-06-17 17:53:26 -04:00
Alex Dyachenko
cc66a187e1 Float assignment tests. 2014-06-16 17:10:05 -04:00
Alex Dyachenko
ef95a16dab Float Changing precision. MPIR 2.7.0 section 7.1 completed. 2014-06-16 16:46:14 -04:00
Alex Dyachenko
49775dbedb Float construction and disposal tests. 2014-06-16 16:08:01 -04:00
Alex Dyachenko
3fda7f427e Moved float arithmetic and comparison tests to the correct location. 2014-06-16 16:03:07 -04:00
Alex Dyachenko
e33d77e1a3 Float Equals (approximately), RelativeDifferenceFrom. MPIR 2.7.0 Section 7.6 Completed. 2014-06-13 15:10:32 -04:00
Alex Dyachenko
2725aec261 updated XML comments for comparisons with a double 2014-06-13 13:58:56 -04:00
Alex Dyachenko
abb2403cca Float square root. MPIR 2.7.0 section 7.5 completed. 2014-06-13 13:54:43 -04:00
Alex Dyachenko
60da57e24c Float arithmetic and comparison tests 2014-06-13 11:21:35 -04:00
Alex Dyachenko
45071bb9d1 Merge branch 'master' of github.com:adyache/mpir 2014-06-05 17:06:13 -04:00
Alex Dyachenko
f1034ab5dd Copied-pasted float tests from rational 2014-06-05 17:05:06 -04:00
Alex Dyachenko
8a33476556 Float comparisons 7.6 except eq-bits and rel-dif 2014-06-05 14:52:10 -04:00
Alex Dyachenko
a7fc90ffa1 Float arithmetic 7.5 except two SQRT methods 2014-06-05 14:51:06 -04:00
Alex Dyachenko
609b9eb948 Removed irrelevant copied code in IO ops, fixed build. 2014-06-04 17:20:08 -04:00
Alex Dyachenko
55f82b2046 Merge branch 'master' of github.com:adyache/mpir
Conflicts:
	mpir.net/mpir.net/HugeRational.h
2014-06-03 12:59:35 -04:00
Alex Dyachenko
06dfc8ec06 Clean-up of unused comments. Added a few missing rational tests. 2014-06-03 10:44:28 -04:00
Alex Dyachenko
25973049d6 Cleanup of comments in the rational header 2014-05-27 13:30:30 -04:00
Alex Dyachenko
f29fb594a5 Initial rough addition of the float type. IO ops don't build, tests to be added. 2014-05-27 13:30:13 -04:00
Alex Dyachenko
20618e11ed Assignment and construction from one or two integer expressions 2014-05-26 15:54:50 -04:00
Alex Dyachenko
1771a0d36e mixed int-rational division 2014-05-26 15:05:21 -04:00
Alex Dyachenko
0b4e592451 Mixed int+rational subtract and multiply 2014-05-23 17:00:32 -04:00
Alex Dyachenko
a29eebb9a0 Refactored type abbr for rationals 2014-05-23 16:22:17 -04:00
Alex Dyachenko
b876961ff7 Implemented mixed int+rational. Need to refactor Int typeabbr. 2014-05-23 13:24:37 -04:00
Alex Dyachenko
30a5875cd9 Refactored AssignTo with macros to use type-distinct names for context overloads, so that mixed args can be assigned to the same context and integers can be assigned to different type args 2014-05-23 10:46:23 -04:00
Alex Dyachenko
597f2422a1 Rational Assignment from integer 2014-05-22 11:48:19 -04:00
Alex Dyachenko
f22660b71e Assignment rational to int 2014-05-22 10:35:03 -04:00
Alex Dyachenko
0b21fa4efd Rational canonicalize method. 2014-05-21 17:19:17 -04:00
Alex Dyachenko
260ba651ff Rational IO completed 2014-05-21 17:08:40 -04:00
Alex Dyachenko
0dc8c29307 Updated and/or fixed more existing rational tests: comparison, construction, conversion, expression, comments. Updated rational XML comments. 2014-05-21 13:03:05 -04:00