Age | Commit message (Collapse) | Author | |
---|---|---|---|
2025-06-04 | Update copyright notices' years | Adrien Hopkins | |
I used the Git history for years after 2019, and only included 2019 or 2018 if they were already there. I also added copyright notices to all code files that don't already have them. | |||
2025-05-30 | Throw error on expressions with too many operators | Adrien Hopkins | |
2025-05-30 | ExpressionParser: use correct operand order | Adrien Hopkins | |
Most of the internal problems with the expression parser happened because I was accepting the arguments for binary operators in the wrong order. For example, '2 - 1' became '1 2 -', not '2 1 -'. The likely cause of this error is the following sequence of events: - In commit 6dbd32cd, I created the code for interpreting RPN. I accepted two arguments from the stack (o1 and o2), then performed o1 <op> o2. However, because stacks are in LIFO order, I should have actually done o2 <op> o1. - Later, in commit 94349688, I created the code for converting an infix expression to RPN. Creating the expressions in the correct order did not work, because my interpreter used the incorrect order. To 'fix' this problem, I created the expressions in the incorrect order. I did not notice any discrepancy, probably because I was not testing the individual methods, only the two-step whole (which found no errors). | |||
2024-03-24 | Format source code & set explicit UTF-8 | Adrien Hopkins | |
2024-03-23 | Complete exponentiation of dimensions | Adrien Hopkins | |
Previously, you could only exponentiate individual dimensions in expressions. For example, `Length^3` was valid, but `(Length / Time)^2` was not. This is now fixed. | |||
2021-09-27 | The ExpressionParser test is now a paramaterized test | Adrien Hopkins | |
2021-09-27 | Added some tests for invalid unitfiles | Adrien Hopkins | |
2021-08-07 | Renamed sevenUnits.math to sevenUnits.utils | Adrien Hopkins | |