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

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.

主站蜘蛛池模板: 潜山县| 当阳市| 车险| 视频| 红河县| 泸水县| 广安市| 清苑县| 石渠县| 云浮市| 桐乡市| 宁夏| 神木县| 博白县| 绥中县| 荃湾区| 垦利县| 观塘区| 光山县| 绥德县| 图木舒克市| 永德县| 南木林县| 昆山市| 万州区| 阜康市| 双鸭山市| 施秉县| 根河市| 临泉县| 黎平县| 峨眉山市| 洛南县| 清涧县| 长寿区| 武汉市| 乳山市| 古交市| 涞水县| 甘泉县| 聂拉木县|