官术网_书友最值得收藏!

Variables, Types, and Operations

Julia is an optionally typed language, which means that the user can choose to specify the type of arguments passed to a function and the type of variables used inside a function. Julia's type system is the key for its performance; understanding it well is important, and it can pay off to use type annotations, not only for documentation or tooling, but also for execution speed. This chapter discusses the realm of elementary built-in types in Julia, the operations that can be performed on them, as well as the important concepts of types and scope.

The following topics are covered in this chapter:

  • Variables, naming conventions, and comments
  • Types
  • Integers
  • Floating point numbers
  • Elementary mathematical functions and operations
  • Rational and complex numbers
  • Characters
  • Strings
  • Regular expressions
  • Ranges and arrays
  • Dates and times
  • Scope and constants

You will need to follow along by typing in the examples in the REPL, or executing the code snippets in the code files of this chapter.

主站蜘蛛池模板: 扬中市| 墨玉县| 南丰县| 凤山市| 育儿| 海原县| 榆中县| 乌鲁木齐县| 永德县| 益阳市| 安义县| 高雄市| 余庆县| 鄱阳县| 绿春县| 嘉定区| 旬邑县| 洪江市| 江华| 仁寿县| 敖汉旗| 民权县| 喀喇| 布拖县| 故城县| 横峰县| 田东县| 侯马市| 阜阳市| 武穴市| 汉源县| 永靖县| 务川| 澎湖县| 馆陶县| 阳泉市| 神池县| 鄂尔多斯市| 宜宾县| 金乡县| 杭州市|