- Getting Started with Julia
- Ivo Balbaert
- 168字
- 2021-07-23 20:34:08
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.
推薦閱讀
- 編程的修煉
- Java EE框架整合開發入門到實戰:Spring+Spring MVC+MyBatis(微課版)
- Android Studio Essentials
- Python自動化運維快速入門
- 趣學Python算法100例
- Oracle BAM 11gR1 Handbook
- Learning Data Mining with R
- Rust Essentials(Second Edition)
- Android程序設計基礎
- Mastering Akka
- LabVIEW虛擬儀器入門與測控應用100例
- UI設計全書(全彩)
- 零基礎學Python編程(少兒趣味版)
- Lift Application Development Cookbook
- Python一行流:像專家一樣寫代碼