翻译自Julia Manual系列文档,若有错误,请指正
Julia的基元数值类型:
• Int8 —有符号的8位整数,范围-2^7 to 2^7 - 1.• Uint8 —无符号的8位整数,范围0 to 2^8 - 1.
• Int16 —有符号的16位整数,范围-2^15 to 2^15 - 1.
• Uint16 —无符号的16位整数,范围0 to 2^16 - 1.
• Int32 —有符号的32位整数,范围-2^31 to 2^31 - 1.
• Uint32 —无符号的32位整数,范围0 to 2^32 - 1.
• Int64 —有符号的64位整数,范围-2^63 to 2^63 - 1.
• Uint64 —无符号的64位整数,范围0 to 2^64 - 1.
• Bool —true 或false, 对应到数值to 1 和 0.
浮点类型:
• Float32 — IEEE 754 32-bit floating-point numbers.
• Float64 — IEEE 754 64-bit floating-point numbers.
定义数组
a=Array(数据类型,数组长度,维数)
扩展包
e.g. Pkg.add("Winston")
Pkg.updata
using Winston
Winston是一个用于画图的扩展包
同上, 也可以使用Gadfly扩展包,同样是用于画图
references:
http://stanford.edu/class/ee103/julia.html