summaryrefslogtreecommitdiff
path: root/library/src/math
diff options
context:
space:
mode:
authorAlex Saveau <saveau.alexandre@gmail.com>2023-04-19 10:08:59 -0700
committerGitHub <noreply@github.com>2023-04-19 19:08:59 +0200
commitb285bea41de7bea0ea33878d812fd4a046913128 (patch)
tree264023ec2642df51ebf87e2eb638d46cd3e63b58 /library/src/math
parentf08ae95b9d8be5165f9c8cac4c755d0510c3a18a (diff)
Make `dot` be multiplication and add `dot.period` for periods (#747)
Diffstat (limited to 'library/src/math')
-rw-r--r--library/src/math/matrix.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/src/math/matrix.rs b/library/src/math/matrix.rs
index f2a9fe97..368cd5c4 100644
--- a/library/src/math/matrix.rs
+++ b/library/src/math/matrix.rs
@@ -10,7 +10,7 @@ const VERTICAL_PADDING: Ratio = Ratio::new(0.1);
///
/// ## Example
/// ```example
-/// $ vec(a, b, c) dot.op vec(1, 2, 3)
+/// $ vec(a, b, c) dot vec(1, 2, 3)
/// = a + 2b + 3c $
/// ```
///
@@ -135,7 +135,7 @@ impl LayoutMath for MatElem {
/// ## Example
/// ```example
/// $ f(x, y) := cases(
-/// 1 "if" (x dot.op y)/2 <= 0,
+/// 1 "if" (x dot y)/2 <= 0,
/// 2 "if" x "is even",
/// 3 "if" x in NN,
/// 4 "else",