julia 1.10.10. 9 3.3 Stylistic Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4 Integers and Floating-Point Numbers 12 4.1 Integers . . . . . . . . . . . . . . . . . . . . . 9.6 Tasks (aka Coroutines) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 10 Scope of Variables 105 10.1 Global Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . obtained after some math, for example) for later use. For example: # Assign the value 10 to the variable x julia> x = 10 10 # Doing math with x's value julia> x + 1 11 # Reassign x's value julia> x =0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 中文文档更多阅读 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 10 流程控制 81 10.1 复合表达式 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 论上并不“拥有”这样一个操作时。在 Julia 中运算符只是函数的一个特殊标记——例如,为用户定 义的新类型添加加法运算,你只要为 + 函数定义一个新的方法就可以了。已有的代码就可以无缝接 入这个新的类型。 9 10 CHAPTER 2. 简介 Julia 在设计之初就非常看重性能,再加上它的动态类型推导(可以被可选的类型标注增强),使得 Julia 的计算性能超过了其它的动态语言,甚至能够与静态编译语言竞争。对于大型数值问题,速度 Chapter 4 变量 Julia 语言中,变量是与某个值相关联(或绑定)的名字。你可以用它来保存一个值(例如某些计算 得到的结果),供之后的代码使用。例如: # 将 10 赋值给变量 x julia> x = 10 10 # 使用 x 的值做计算 julia> x + 1 11 # 重新给 x 赋值 julia> x = 1 + 1 2 # 也可以给 x 赋其它类型的值, 比如字符串文本0 码力 | 1238 页 | 4.59 MB | 1 年前3
Julia 1.2.0 DEV Documentation. . . . 18 8 External dependencies 19 i ii CONTENTS 9 Deprecated or removed 21 III Manual 23 10 Ge�ng Started 25 10.1 Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 Default top-level defini�ons and bare modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 Rela�ve updated to v1.3.1 (#30724). 19 Chapter 9 Deprecated or removed 21 Part III Manual 23 Chapter 10 Ge�ng Started Julia installa�on is straigh�orward, whether using precompiled binaries or compiling0 码力 | 1252 页 | 4.28 MB | 1 年前3
Julia v1.2.0 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 10 Variables 27 10.1 Allowed Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 Default top-level defini�ons and bare modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 Rela�ve bytes allocated by each source line --track-allocation equivalent to --track-allocation=user Chapter 10 Variables A variable, in Julia, is a name associated (or bound) to a value. It's useful when you0 码力 | 1250 页 | 4.29 MB | 1 年前3
Julia v1.1.1 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 10 Variables 27 10.1 Allowed Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 Default top-level defini�ons and bare modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 Rela�ve requiring types to match (#29092). • range can accept the stop value as a posi�onal argument, e.g. range(1,10,step=2) (#28708). • diff now supports arrays of arbitrary dimensionality and can operate over any0 码力 | 1216 页 | 4.21 MB | 1 年前3
Julia 1.5.0 DEV Documentation7 Build system changes 17 8 New library functions 19 9 New library features 21 i ii CONTENTS 10 Standard library changes 23 LinearAlgebra . . . . . . . . . . . . . . . . . . . . . . . . . . . . modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 Default top-level definitions and bare modules . . . . . . . . . . . . . . . . . . . . . . . . . . 213 Relative ments (#34896). 7 Chapter 3 Language changes • The interactive REPL now uses "soft scope" for top-level expressions: an assignment inside a scope block such as a for loop automatically assigns to0 码力 | 1340 页 | 4.36 MB | 1 年前3
Julia 1.1.0 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 10 Variables 27 10.1 Allowed Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 Default top-level defini�ons and bare modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 Rela�ve requiring types to match (#29092). • range can accept the stop value as a posi�onal argument, e.g. range(1,10,step=2) (#28708). • diff now supports arrays of arbitrary dimensionality and can operate over any0 码力 | 1214 页 | 4.21 MB | 1 年前3
Julia v1.4.2 DocumentationResources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 10 Variables 27 10.1 Allowed Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 Default top-level definitions and bare modules . . . . . . . . . . . . . . . . . . . . . . . . . . 201 Relative allocated by each source line --track- allocation equivalent to --track-allocation=user Chapter 10 Variables A variable, in Julia, is a name associated (or bound) to a value. It's useful when you0 码力 | 1314 页 | 4.29 MB | 1 年前3
Julia 1.4.1 DocumentationResources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 10 Variables 27 10.1 Allowed Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 Default top-level definitions and bare modules . . . . . . . . . . . . . . . . . . . . . . . . . . 201 Relative allocated by each source line --track- allocation equivalent to --track-allocation=user Chapter 10 Variables A variable, in Julia, is a name associated (or bound) to a value. It's useful when you0 码力 | 1312 页 | 4.29 MB | 1 年前3
Julia 1.4.0 DocumentationResources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 10 Variables 27 10.1 Allowed Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 Default top-level definitions and bare modules . . . . . . . . . . . . . . . . . . . . . . . . . . 201 Relative allocated by each source line --track- allocation equivalent to --track-allocation=user Chapter 10 Variables A variable, in Julia, is a name associated (or bound) to a value. It's useful when you0 码力 | 1340 页 | 4.36 MB | 1 年前3
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













