fv1 = rotate (Tetrahedron.fv t) cwz
expr1 = top $ fv0
expr2 = top $ fv1
+
+prop_swapping_vertices_doesnt_affect_coefficients1 :: Tetrahedron -> Bool
+prop_swapping_vertices_doesnt_affect_coefficients1 t =
+ c t 0 0 1 2 == c t' 0 0 1 2
+ where
+ t' = t { v0 = (v1 t), v1 = (v0 t) }
+
+prop_swapping_vertices_doesnt_affect_coefficients2 :: Tetrahedron -> Bool
+prop_swapping_vertices_doesnt_affect_coefficients2 t =
+ c t 0 1 1 1 == c t' 0 1 1 1
+ where
+ t' = t { v2 = (v3 t), v3 = (v2 t) }
+
+prop_swapping_vertices_doesnt_affect_coefficients3 :: Tetrahedron -> Bool
+prop_swapping_vertices_doesnt_affect_coefficients3 t =
+ c t 2 1 0 0 == c t' 2 1 0 0
+ where
+ t' = t { v2 = (v3 t), v3 = (v2 t) }
+
+prop_swapping_vertices_doesnt_affect_coefficients4 :: Tetrahedron -> Bool
+prop_swapping_vertices_doesnt_affect_coefficients4 t =
+ c t 2 0 0 1 == c t' 2 0 0 1
+ where
+ t' = t { v0 = (v3 t), v3 = (v0 t) }
putStr "prop_b3_v2_always_zero... "
quickCheckWith qc_args prop_b3_v2_always_zero
+ putStr "prop_swapping_vertices_doesnt_affect_coefficients1... "
+ quickCheckWith qc_args prop_swapping_vertices_doesnt_affect_coefficients1
+
+ putStr "prop_swapping_vertices_doesnt_affect_coefficients2... "
+ quickCheckWith qc_args prop_swapping_vertices_doesnt_affect_coefficients2
+
+ putStr "prop_swapping_vertices_doesnt_affect_coefficients3... "
+ quickCheckWith qc_args prop_swapping_vertices_doesnt_affect_coefficients3
+
+ putStr "prop_swapping_vertices_doesnt_affect_coefficients4... "
+ quickCheckWith qc_args prop_swapping_vertices_doesnt_affect_coefficients4
+
putStrLn "\np. 78, (2.4)\n"
putStr "prop_c3000_identity... "
putStr "prop_c1110_identity... "
quickCheckWith qc_args TT.prop_c1110_identity
-
putStrLn "\nCardinal Tests\n"
putStr "prop_ccwx_rotation_changes_direction... "