Showing
1 changed file
with
2 additions
and
0 deletions
@@ -141,6 +141,8 @@ fn _vector() { | @@ -141,6 +141,8 @@ fn _vector() { | ||
141 | println!("{:>14} : {}", format!("v1 * {}", s), v1.mul(&s)); | 141 | println!("{:>14} : {}", format!("v1 * {}", s), v1.mul(&s)); |
142 | println!("{:>14} : {}", "norm v1", v1.norm()); | 142 | println!("{:>14} : {}", "norm v1", v1.norm()); |
143 | println!("{:>14} : {}", "abs norm v1", v1.norm().abs()); | 143 | println!("{:>14} : {}", "abs norm v1", v1.norm().abs()); |
144 | + println!("{:>14} : {}", "abs v1", v1.abs()); | ||
145 | + println!("{:>14} : {}", "norm * abs", v1.norm().mul(&v1.abs())); | ||
144 | println!("{:>14} : {}", "distance v1 v2", v1.distance(v2)); | 146 | println!("{:>14} : {}", "distance v1 v2", v1.distance(v2)); |
145 | println!("{:>14} : {}", "distance v2 v1", v2.distance(v1)); | 147 | println!("{:>14} : {}", "distance v2 v1", v2.distance(v1)); |
146 | println!("{:>14} : {}", "v1 dot v2", v1.dot(v2)); | 148 | println!("{:>14} : {}", "v1 dot v2", v1.dot(v2)); |
Please
register
or
login
to post a comment