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

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.

主站蜘蛛池模板: 榆中县| 元氏县| 鄂托克旗| 千阳县| 罗定市| 宜阳县| 屏边| 获嘉县| 天峻县| 息烽县| 通化市| 咸宁市| 个旧市| 宝鸡市| 阿图什市| 永嘉县| 静安区| 故城县| 微博| 张家口市| 崇文区| 邛崃市| 莱州市| 林西县| 吴旗县| 天台县| 信阳市| 清原| 张家港市| 吐鲁番市| 德江县| 仁布县| 龙南县| 隆安县| 丰都县| 开江县| 和硕县| 时尚| 双桥区| 特克斯县| 奉节县|