Julia v1.5.4 DocumentationUpdating operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 5.4 Vectorized "dot" operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . julia> x = 0x01; typeof(x) UInt8 julia> x *= 2 # Same as x = x * 2 2 julia> typeof(x) Int64 5.4 Vectorized "dot" operators For every binary operation like ^, there is a corresponding "dot" operation0 码力 | 1337 页 | 4.41 MB | 1 年前3
Julia 1.6.1 DocumentationBitwise Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.4 Updating operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -124 5.4. UPDATING OPERATORS 27 julia> 123 & 234 106 julia> 123 | 234 251 julia> 123 ⊻ 234 145 julia> xor(123, 234) 145 julia> ~UInt32(123) 0xffffff84 julia> ~UInt8(123) 0x84 5.4 Updating0 码力 | 1397 页 | 4.59 MB | 1 年前3
Julia 1.7.0 DEV DocumentationBitwise Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.4 Updating operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -124 5.4. UPDATING OPERATORS 27 julia> 123 & 234 106 julia> 123 | 234 251 julia> 123 ⊻ 234 145 julia> xor(123, 234) 145 julia> ~UInt32(123) 0xffffff84 julia> ~UInt8(123) 0x84 5.4 Updating0 码力 | 1399 页 | 4.59 MB | 1 年前3
Julia 1.6.0 DEV DocumentationBitwise Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.4 Updating operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -124 5.4. UPDATING OPERATORS 27 julia> 123 & 234 106 julia> 123 | 234 251 julia> 123 ⊻ 234 145 julia> xor(123, 234) 145 julia> ~UInt32(123) 0xffffff84 julia> ~UInt8(123) 0x84 5.4 Updating0 码力 | 1383 页 | 4.56 MB | 1 年前3
Julia 1.6.0 DocumentationBitwise Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.4 Updating operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -124 5.4. UPDATING OPERATORS 27 julia> 123 & 234 106 julia> 123 | 234 251 julia> 123 ⊻ 234 145 julia> xor(123, 234) 145 julia> ~UInt32(123) 0xffffff84 julia> ~UInt8(123) 0x84 5.4 Updating0 码力 | 1397 页 | 4.59 MB | 1 年前3
Julia 中文文档5.3 任意精度算术 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 5.4 数值字面量系数 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 语法冲突 1000000000004 5.4 数值字面量系数 为了让常见的数值公式和表达式更清楚,Julia 允许变量直接跟在一个数值字面量后,暗指乘法。这 可以让写多项式变得很清楚: julia> x = 3 3 julia> 2x^2 - 3x + 1 10 julia> 1.5x^2 - .5x + 1 13.0 也会让写指数函数变得更加优雅: 5.4. 数值字面量系数 31 julia>0 码力 | 1238 页 | 4.59 MB | 1 年前3
Julia v1.6.6 DocumentationBitwise Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.4 Updating operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ⊻ 234 145 julia> xor(123, 234) 145 julia> ~UInt32(123) 0xffffff84 julia> ~UInt8(123) 0x84 5.4 Updating operators Every binary arithmetic and bitwise operator also has an updating version that0 码力 | 1324 页 | 4.54 MB | 1 年前3
Julia 1.6.5 DocumentationBitwise Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.4 Updating operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ⊻ 234 145 julia> xor(123, 234) 145 julia> ~UInt32(123) 0xffffff84 julia> ~UInt8(123) 0x84 5.4 Updating operators Every binary arithmetic and bitwise operator also has an updating version that0 码力 | 1325 页 | 4.54 MB | 1 年前3
Julia 1.6.7 DocumentationBitwise Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.4 Updating operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ⊻ 234 145 julia> xor(123, 234) 145 julia> ~UInt32(123) 0xffffff84 julia> ~UInt8(123) 0x84 5.4 Updating operators Every binary arithmetic and bitwise operator also has an updating version that0 码力 | 1324 页 | 4.54 MB | 1 年前3
Julia 1.5.3 DocumentationUpdating operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 5.4 Vectorized "dot" operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . julia> x = 0x01; typeof(x) UInt8 julia> x *= 2 # Same as x = x * 2 2 julia> typeof(x) Int64 5.4 Vectorized "dot" operators For every binary operation like ^, there is a corresponding "dot" operation0 码力 | 1335 页 | 4.41 MB | 1 年前3
共 77 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













