You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/src/manual/mathematical-operations.md
+28-28Lines changed: 28 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ are supported on all primitive numeric types:
20
20
|`x ÷ y`| integer divide | x / y, truncated to an integer |
21
21
|`x \ y`| inverse divide | equivalent to `y / x`|
22
22
|`x ^ y`| power | raises `x` to the `y`th power |
23
-
|`x % y`| remainder | equivalent to `rem(x,y)`|
23
+
|`x % y`| remainder | equivalent to `rem(x,y)`|
24
24
25
25
A numeric literal placed directly before an identifier or parentheses, e.g. `2x` or `2(x+y)`, is treated as a multiplication, except with higher precedence than other binary operations. See [Numeric Literal Coefficients](@ref man-numeric-literal-coefficients) for details.
26
26
@@ -171,15 +171,15 @@ The updating versions of all the binary arithmetic and bitwise operators are:
171
171
For *every* binary operation like `^`, there is a corresponding
172
172
"dot" operation `.^` that is *automatically* defined
173
173
to perform `^` element-by-element on arrays. For example,
174
-
`[1,2,3] ^ 3` is not defined, since there is no standard
174
+
`[1, 2, 3] ^ 3` is not defined, since there is no standard
175
175
mathematical meaning to "cubing" a (non-square) array, but
176
-
`[1,2,3] .^ 3` is defined as computing the elementwise
176
+
`[1, 2, 3] .^ 3` is defined as computing the elementwise
177
177
(or "vectorized") result `[1^3, 2^3, 3^3]`. Similarly for unary
178
178
operators like `!` or `√`, there is a corresponding `.√` that
179
179
applies the operator elementwise.
180
180
181
181
```jldoctest
182
-
julia> [1,2,3] .^ 3
182
+
julia> [1, 2, 3] .^ 3
183
183
3-element Vector{Int64}:
184
184
1
185
185
8
@@ -524,43 +524,43 @@ See [Conversion and Promotion](@ref conversion-and-promotion) for how to define
0 commit comments