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

Chapter 2. 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 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.

主站蜘蛛池模板: 钟山县| 绥芬河市| 西城区| 宜章县| 和田市| 青州市| 丁青县| 沂源县| 博客| 胶南市| 德令哈市| 宜黄县| 河津市| 登封市| 东山县| 营山县| 襄汾县| 汉源县| 镇安县| 中超| 恩施市| 苍梧县| 华坪县| 芒康县| 岗巴县| 姚安县| 开江县| 瑞金市| 辽阳县| 洪洞县| 长顺县| 兰考县| 唐山市| 普兰县| 九台市| 孟村| 洱源县| 郎溪县| 富蕴县| 梧州市| 朔州市|