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

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.

主站蜘蛛池模板: 获嘉县| 巴楚县| 玉门市| 平安县| 桃源县| 高安市| 绥化市| 巴林右旗| 台南县| 南漳县| 延川县| 磐石市| 中方县| 恭城| 汶川县| 偏关县| 富锦市| 曲水县| 高碑店市| 罗江县| 密云县| 齐齐哈尔市| 进贤县| 夏邑县| 聂荣县| 和硕县| 河曲县| 沧州市| 禹城市| 民乐县| 康马县| 左贡县| 靖边县| 忻城县| 平乐县| 屯门区| 朔州市| 嘉鱼县| 静乐县| 古浪县| 新安县|