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

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.

主站蜘蛛池模板: 南澳县| 土默特右旗| 陵川县| 开鲁县| 邻水| 甘南县| 禹城市| 镇巴县| 牙克石市| 泌阳县| 永仁县| 兰坪| 恭城| 额尔古纳市| 汝州市| 濮阳县| 枝江市| 定陶县| 嘉禾县| 永川市| 田阳县| 白玉县| 福州市| 邳州市| 永济市| 遵义县| 陆河县| 东明县| 唐山市| 东乡族自治县| 喀喇沁旗| 子长县| 安仁县| 中阳县| 丰都县| 宜阳县| 新营市| 乌兰县| 吉水县| 泸西县| 靖江市|