更新时间:2021-07-23 19:23:41
封面
Title Page
Copyright and Credits
Julia 1.0 Programming Second Edition
Packt Upsell
Why subscribe?
Packt.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Get in touch
Reviews
Installing the Julia Platform
Installing Julia
Windows OS
OS X
Linux OS
Building from source
JuliaPro
Working with Julia's REPL
Startup options and Julia scripts
Packages
Adding a new package
Installing and working with IJulia
Installing Juno
Installing julia-vscode
Installing Sublime-IJulia
Other editors and IDEs
How Julia works
Summary
Variables Types and Operations
Variables naming conventions and comments
Types
Integers
Floating point numbers
Elementary mathematical functions and operations
Rational and complex numbers
Characters
Strings
Formatting numbers and strings
Regular expressions
Ranges and arrays
Other ways to create arrays
Some common functions for arrays
Dates and times
Scope and constants
Functions
Defining functions
Optional and keyword arguments
Anonymous functions
First-class functions and closures
functions
Broadcasting
Map filter and list comprehensions
Generic functions and multiple dispatch
Control Flow
Conditional evaluation
Repeated evaluation
for loops
while loops
The break statement
The continue statement
Exception handling
Scope revisited
Tasks
Collection Types
Matrices
Tuples
Dictionaries
Keys and values – looping
Sets
An example project – word frequency
More on Types Methods and Modules
Type annotations
Type conversions and promotions
The type hierarchy – subtypes and supertypes
Concrete and abstract types
User-defined and composite types
When are two values or objects equal or identical?
A multiple-dispatch example
Types and collections – inner constructors
Type unions
Parametric types and methods
Standard modules and paths
Metaprogramming in Julia
Expressions and symbols
Evaluation and interpolation
Defining macros