Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
ickk committed May 25, 2024
1 parent 4986ff9 commit 0fd7bf2
Show file tree
Hide file tree
Showing 14 changed files with 2,744 additions and 94 deletions.
6 changes: 3 additions & 3 deletions rga/src/operators/antireverse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ mod tests {
);

assert_eq!(
dbg!(left_weight_dual(MULTIVECTOR_A)),
dbg!(geometric_antiproduct(
left_weight_dual(MULTIVECTOR_A),
geometric_antiproduct(
Multivector { s: 1., ..zero() },
antireverse(MULTIVECTOR_A)
))
)
);
}

Expand Down
4 changes: 2 additions & 2 deletions rga/src/operators/antisupport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ mod tests {
#[test]
fn definition() {
assert_eq!(
dbg!(antisupport(MULTIVECTOR_A)),
dbg!(central_antiprojection(Multivector::E4, MULTIVECTOR_A))
antisupport(MULTIVECTOR_A),
central_antiprojection(Multivector::E4, MULTIVECTOR_A)
);
}

Expand Down
6 changes: 3 additions & 3 deletions rga/src/operators/antiwedge_product.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2776,11 +2776,11 @@ mod tests {
))
);
assert_eq!(
dbg!(Multivector::from(antiwedge_product(even_grade, trivector))),
dbg!(Multivector::from(antiwedge_product(
Multivector::from(antiwedge_product(even_grade, trivector)),
Multivector::from(antiwedge_product(
Multivector::from(even_grade),
Multivector::from(trivector)
)))
))
);
assert_eq!(
Multivector::from(antiwedge_product(even_grade, antiscalar)),
Expand Down
10 changes: 5 additions & 5 deletions rga/src/operators/bulk_contraction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1864,8 +1864,8 @@ mod tests {
#[test]
fn definition() {
assert_eq!(
dbg!(bulk_contraction(MULTIVECTOR_A, MULTIVECTOR_B)),
dbg!(antiwedge_product(MULTIVECTOR_A, bulk_dual(MULTIVECTOR_B)))
bulk_contraction(MULTIVECTOR_A, MULTIVECTOR_B),
antiwedge_product(MULTIVECTOR_A, bulk_dual(MULTIVECTOR_B))
);
}

Expand Down Expand Up @@ -2495,11 +2495,11 @@ mod tests {
))
);
assert_eq!(
dbg!(Multivector::from(bulk_contraction(even_grade, trivector))),
dbg!(Multivector::from(bulk_contraction(
Multivector::from(bulk_contraction(even_grade, trivector)),
Multivector::from(bulk_contraction(
Multivector::from(even_grade),
Multivector::from(trivector)
)))
))
);
assert_eq!(
Multivector::from(bulk_contraction(even_grade, antiscalar)),
Expand Down
10 changes: 5 additions & 5 deletions rga/src/operators/bulk_expansion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1298,8 +1298,8 @@ mod tests {
#[test]
fn definition() {
assert_eq!(
dbg!(bulk_expansion(MULTIVECTOR_A, MULTIVECTOR_B)),
dbg!(wedge_product(MULTIVECTOR_A, bulk_dual(MULTIVECTOR_B)))
bulk_expansion(MULTIVECTOR_A, MULTIVECTOR_B),
wedge_product(MULTIVECTOR_A, bulk_dual(MULTIVECTOR_B))
);
}

Expand Down Expand Up @@ -1915,11 +1915,11 @@ mod tests {
))
);
assert_eq!(
dbg!(Multivector::from(bulk_expansion(even_grade, trivector))),
dbg!(Multivector::from(bulk_expansion(
Multivector::from(bulk_expansion(even_grade, trivector)),
Multivector::from(bulk_expansion(
Multivector::from(even_grade),
Multivector::from(trivector)
)))
))
);
assert_eq!(
Multivector::from(bulk_expansion(even_grade, antiscalar)),
Expand Down
6 changes: 3 additions & 3 deletions rga/src/operators/dot_product.rs
Original file line number Diff line number Diff line change
Expand Up @@ -704,11 +704,11 @@ mod tests {
#[test]
fn de_morgans_laws() {
assert_eq!(
dbg!(antidot_product(MULTIVECTOR_A, MULTIVECTOR_B)),
dbg!(right_complement(dot_product(
antidot_product(MULTIVECTOR_A, MULTIVECTOR_B),
right_complement(dot_product(
left_complement(MULTIVECTOR_A),
left_complement(MULTIVECTOR_B)
)))
))
);
}

Expand Down
14 changes: 7 additions & 7 deletions rga/src/operators/geometric_antiproduct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3230,11 +3230,11 @@ mod tests {
#[test]
fn de_morgans_laws() {
assert_eq!(
dbg!(geometric_antiproduct(MULTIVECTOR_A, MULTIVECTOR_B)),
dbg!(right_complement(geometric_product(
geometric_antiproduct(MULTIVECTOR_A, MULTIVECTOR_B),
right_complement(geometric_product(
left_complement(MULTIVECTOR_A),
left_complement(MULTIVECTOR_B)
)))
))
);

assert_eq!(
Expand Down Expand Up @@ -3858,13 +3858,13 @@ mod tests {
))
);
assert_eq!(
dbg!(Multivector::from(geometric_antiproduct(
Multivector::from(geometric_antiproduct(
even_grade, trivector
))),
dbg!(Multivector::from(geometric_antiproduct(
)),
Multivector::from(geometric_antiproduct(
Multivector::from(even_grade),
Multivector::from(trivector)
)))
))
);
assert_eq!(
Multivector::from(geometric_antiproduct(even_grade, antiscalar)),
Expand Down
6 changes: 3 additions & 3 deletions rga/src/operators/geometric_product.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3875,11 +3875,11 @@ mod tests {
))
);
assert_eq!(
dbg!(Multivector::from(geometric_product(even_grade, trivector))),
dbg!(Multivector::from(geometric_product(
Multivector::from(geometric_product(even_grade, trivector)),
Multivector::from(geometric_product(
Multivector::from(even_grade),
Multivector::from(trivector)
)))
))
);
assert_eq!(
Multivector::from(geometric_product(even_grade, antiscalar)),
Expand Down
6 changes: 3 additions & 3 deletions rga/src/operators/reverse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@ mod tests {
);

assert_eq!(
dbg!(left_bulk_dual(MULTIVECTOR_A)),
dbg!(geometric_product(
left_bulk_dual(MULTIVECTOR_A),
geometric_product(
Multivector::E1234,
reverse(MULTIVECTOR_A)
))
)
);
}

Expand Down
4 changes: 2 additions & 2 deletions rga/src/operators/right_bulk_dual.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ mod tests {
#[test]
fn definition() {
assert_eq!(
dbg!(bulk_dual(MULTIVECTOR_A)),
dbg!(right_complement(bulk(MULTIVECTOR_A))),
bulk_dual(MULTIVECTOR_A),
right_complement(bulk(MULTIVECTOR_A)),
"The Right Bulk Dual of an object is defined as the Right Complement of \
the Bulk of an object"
);
Expand Down
4 changes: 2 additions & 2 deletions rga/src/operators/support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ mod tests {
);

assert_eq!(
dbg!(support(MULTIVECTOR_A)),
dbg!(orthogonal_projection(Multivector::E4, MULTIVECTOR_A))
support(MULTIVECTOR_A),
orthogonal_projection(Multivector::E4, MULTIVECTOR_A)
);
}
}
Loading

0 comments on commit 0fd7bf2

Please sign in to comment.