-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for rational exponents in units of measure
commit fd77e404911ea3948d8d6b59c9a53522eba2cef4 Author: latkin <[email protected]> Date: Wed Jan 7 17:15:14 2015 -0800 Further overflow/parsing fixes: check denominators, convert to bigint before negation commit 09e892b3eda586775767cef1866c994ace07d217 Author: andrewjkennedy <[email protected]> Date: Wed Jan 7 11:40:53 2015 +0000 Make parsing of -2147483648 in rational exponents an error commit 050b8b67c30c6857353d70449955c9872939b42a Author: latkin <[email protected]> Date: Tue Jan 6 14:48:11 2015 -0800 Remove unused error message commit 75b99d8561ff9aee087dc856cde106d6b4053622 Author: latkin <[email protected]> Date: Tue Jan 6 14:35:07 2015 -0800 Deleting obsolete tests commit ac97bcb9eb1079381c50071b5e3d95e21f21a12c Merge: f11c636 1877dff Author: latkin <[email protected]> Date: Mon Jan 5 15:58:51 2015 -0800 Merge branch 'unitsexprat' of https://git01.codeplex.com/forks/andrewjkennedy/fsharpcontrib into rationalexp Conflicts: src/fsharp/FSComp.txt commit 1877dff5235e538b6b406a17478ce9b81bad735b Author: andrewjkennedy <[email protected]> Date: Tue Dec 30 12:08:50 2014 +0000 Tests commit f7255be543782ae2aa5ed570c731eeb74d2205a1 Author: andrewjkennedy <[email protected]> Date: Mon Dec 29 15:37:59 2014 +0000 Added ref to System.Numerics commit 47180d60e4607233efe8a52be3f241c478793684 Author: andrewjkennedy <[email protected]> Date: Mon Dec 29 15:18:48 2014 +0000 Parsing of rational exponents is broken commit b5ce68705045ed9944183f8238c478f7db575aa5 Author: andrewjkennedy <[email protected]> Date: Mon Dec 29 13:47:26 2014 +0000 Revert "Overflow exception catching" This reverts commit 9259f5374d0d4f20f0fb5fb4ef43e0eba71027ae. commit 11e1ed21ccf05a0552c97d635c3b91e6e6397691 Author: andrewjkennedy <[email protected]> Date: Mon Dec 29 13:30:21 2014 +0000 Use BigIntegers for rationals commit 9259f5374d0d4f20f0fb5fb4ef43e0eba71027ae Author: andrewjkennedy <[email protected]> Date: Mon Dec 29 13:29:23 2014 +0000 Overflow exception catching commit 3b835e9b20e580b01bac7e81ea53cfaa36ac06c5 Author: andrewjkennedy <[email protected]> Date: Mon Nov 3 17:38:57 2014 +0000 Error message for non-parenthesized units commit 3160dbbac9e9e2799eb3fe13239525fa8ce8c568 Author: andrewjkennedy <[email protected]> Date: Mon Nov 3 16:18:31 2014 +0000 Improved error when parentheses are omitted from exponent commit f24e688d7794263f7dabb40f4ac9a498e82d517d Author: andrewjkennedy <[email protected]> Date: Mon Nov 3 13:24:59 2014 +0000 Negative test for rational exponent parsing commit 1e55326403626df25776226501bc8fedfc089adb Author: andrewjkennedy <[email protected]> Date: Mon Nov 3 11:21:05 2014 +0000 Zero denominator test commit f50f36f8603420298316ce966eb2e156e4052839 Author: andrewjkennedy <[email protected]> Date: Mon Nov 3 11:07:47 2014 +0000 Small improvements as suggested by Don commit 71fe676f97bf06dbf165defb0b1e10a250266126 Author: andrewjkennedy <[email protected]> Date: Mon Nov 3 11:07:02 2014 +0000 Some positive tests for rational exponents commit 0ac8fdc68ba807920c22b212be549751aa141548 Author: andrewjkennedy <[email protected]> Date: Thu Oct 30 13:44:44 2014 +0000 Fix bug on too many measure variables e.g. let f(x:float<'a 'b>) = x;; commit 2a227d0f4463d117f3022b34a18733e3b98d8594 Author: andrewjkennedy <[email protected]> Date: Thu Oct 30 10:58:49 2014 +0000 Check for 0 denominator commit 67acf8465ea5bfcb8766f7045ba5b47bf1a51fc5 Author: andrewjkennedy <[email protected]> Date: Thu Oct 30 10:41:05 2014 +0000 Couple of non-integer exponent tests commit 89881e2a94cf0e220051d68393d5e184ddc4634e Author: andrewjkennedy <[email protected]> Date: Thu Oct 30 10:16:18 2014 +0000 u_rational should be outside #ifdef commit 8461d5ee8632e15555680bc41cfea241f5ad7e5d Author: andrewjkennedy <[email protected]> Date: Wed Oct 29 11:05:14 2014 +0000 Updated comments commit c9da07d8f06311e2e62958e675f8082329651bf1 Author: andrewjkennedy <[email protected]> Date: Wed Oct 29 10:40:09 2014 +0000 Parentheses Revert LessGeneric test commit b6090279f81f6583d5a2bec18eeaebb308506148 Author: andrewjkennedy <[email protected]> Date: Tue Oct 28 15:42:18 2014 +0000 Negative test baseline - can now take sqrt of m! commit a69bfc41a0184784bee44c7a08f3206525b1ce81 Author: andrewjkennedy <[email protected]> Date: Tue Oct 28 14:58:50 2014 +0000 Simplification to simplification: compute reduced row echelon form then normalize exponents Syntax of negative rationals: permit either u^-(2/3) or u^(-2/3) commit 4a6143daaf38909d5b75e34d5fd4b036f4b862cc Author: andrewjkennedy <[email protected]> Date: Tue Oct 28 11:21:17 2014 +0000 More efficient representation of measures. Separate rational implementation. Better simplified form. commit 323d627288948359795797060216d8fe7d4676cf Author: andrewjkennedy <[email protected]> Date: Fri Oct 17 13:46:54 2014 +0100 Normalization of unit variable exponents in type schemes Insist on parentheses around rational constants - otherwise how do we parse float<kg^2/s> Still an issue with warnings wrt "too generic" commit 547444819d02f7df2f49b69c5ef32b039d58859b Author: andrewjkennedy <[email protected]> Date: Thu Oct 16 14:53:43 2014 +0100 Comment out measure unification algorithm and replace with one that makes use of rational exponents. Simpolification of type schemes will currently fail if any unit variables have non-integer exponent. commit 82b5fe40c907aae75036982dc7a4b168410e66e1 Author: andrewjkennedy <[email protected]> Date: Thu Oct 16 14:33:58 2014 +0100 TAST support for rational exponents; pretty-printing; pickling Solver currently projects out integers, fails on non-integers commit d558956a1476d79b6aaa52e6ccf6d1f2f5372dac Author: andrewjkennedy <[email protected]> Date: Thu Oct 16 11:52:49 2014 +0100 Implement syntax for rational exponents in units-of-measure Flag syntax error in type-checker if rational exponent encountered, for now
- Loading branch information
Showing
26 changed files
with
397 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.