From 4db89a7e775921f4bb29db9f9b6bd939f115b631 Mon Sep 17 00:00:00 2001 From: Adrien Hopkins Date: Sat, 23 Mar 2024 15:25:42 -0500 Subject: Complete exponentiation of dimensions 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. --- src/test/resources/test-dimensionfile-valid1.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/test/resources') diff --git a/src/test/resources/test-dimensionfile-valid1.txt b/src/test/resources/test-dimensionfile-valid1.txt index fc6a426..d51ffe0 100644 --- a/src/test/resources/test-dimensionfile-valid1.txt +++ b/src/test/resources/test-dimensionfile-valid1.txt @@ -3,10 +3,4 @@ MASS ! TIME ! ENERGY MASS * LENGTH^2 / TIME^2 -POWER ENERGY / TIME - -# doesn't work, but would require major changes to fix properly -# for now, just don't use brackets in dimension expressions -# (note that the unit/prefix expressions use a complete hack -# to enable this, one that doesn't work for dimensions) -# POWER MASS * (LENGTH / TIME)^2 / TIME \ No newline at end of file +POWER MASS * (LENGTH / TIME)^2 / TIME \ No newline at end of file -- cgit v1.2.3