diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-06-26 17:20:22 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-06-27 13:58:43 -0400 |
commit | e466113d70e9786259b3516b5951771b0706e5d8 (patch) | |
tree | 9abce5a134d5f437d8f1b6f70bba9669f191b82e /src/chebyshev.rs | |
parent | b4e301a2a4e6e00a1b521cae8e1a015ab8fc2b54 (diff) | |
download | acap-e466113d70e9786259b3516b5951771b0706e5d8.tar.xz |
docs: Integrate KaTeX and add some formulas
Diffstat (limited to 'src/chebyshev.rs')
-rw-r--r-- | src/chebyshev.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/chebyshev.rs b/src/chebyshev.rs index fa8e92c..335b6f1 100644 --- a/src/chebyshev.rs +++ b/src/chebyshev.rs @@ -44,6 +44,13 @@ impl<T: Coordinates> Coordinates for Chebyshev<T> { } /// Compute the Chebyshev distance between two points. +/// +/// ```math +/// \begin{aligned} +/// \mathrm{chebyshev\_distance}(x, y) &= \|x - y\|_\infty \\ +/// &= \max_i |x_i - y_i| +/// \end{aligned} +/// ``` pub fn chebyshev_distance<T, U>(x: T, y: U) -> T::Value where T: Coordinates, |