commit
61ae657e28
@ -57,7 +57,7 @@ The `Julia` language provides the building blocks for the wider `Julia` ecosyste
|
|||||||
Package installation is straightforward, as `Julia` has a package, `Pkg`, that facilitates this.
|
Package installation is straightforward, as `Julia` has a package, `Pkg`, that facilitates this.
|
||||||
|
|
||||||
|
|
||||||
Since `Julia` version 1.7, just attempting to load a package through `using PackageName` at the *command line* will either load an installed package *or* query for an uninstalled package to be installed before lading. So installation just requires confirming a prompt.
|
Since `Julia` version 1.7, just attempting to load a package through `using PackageName` at the *command line* will either load an installed package *or* query for an uninstalled package to be installed before loading. So installation just requires confirming a prompt.
|
||||||
|
|
||||||
|
|
||||||
For more control, the command line and `IJulia` provide access to the function in `Pkg` through the escape command `]`. For example, to find the status of all currently installed packages, the following command can be executed:
|
For more control, the command line and `IJulia` provide access to the function in `Pkg` through the escape command `]`. For example, to find the status of all currently installed packages, the following command can be executed:
|
||||||
|
@ -80,7 +80,7 @@ Pluto has a built-in package management system that manages the installation of
|
|||||||
"Project [Jupyter](https://jupyter.org/) exists to develop open-source software, open-standards, and services for interactive computing across dozens of programming languages." The `IJulia` package allows `Julia` to be one of these programming languages. This package must be installed prior to use.
|
"Project [Jupyter](https://jupyter.org/) exists to develop open-source software, open-standards, and services for interactive computing across dozens of programming languages." The `IJulia` package allows `Julia` to be one of these programming languages. This package must be installed prior to use.
|
||||||
|
|
||||||
|
|
||||||
The Jupyter Project provides two web-based interfaces to `Julia`: the Jupyter notebook and the newer JupyterLab. The the [binder](https://mybinder.org/) project use Juptyer notebooks for their primary interface to `Julia`. To use a binder notebook, follow this link:
|
The Jupyter Project provides two web-based interfaces to `Julia`: the Jupyter notebook and the newer JupyterLab. The [binder](https://mybinder.org/) project use Juptyer notebooks for their primary interface to `Julia`. To use a binder notebook, follow this link:
|
||||||
|
|
||||||
|
|
||||||
[lauch binder](https://mybinder.org/v2/gh/CalculusWithJulia/CwJScratchPad.git/master)
|
[lauch binder](https://mybinder.org/v2/gh/CalculusWithJulia/CwJScratchPad.git/master)
|
||||||
|
@ -168,7 +168,7 @@ When a function has multiple arguments, yet the value passed in is a container h
|
|||||||
### Multiple dispatch
|
### Multiple dispatch
|
||||||
|
|
||||||
|
|
||||||
`Julia` can have many methods for a single generic function. (E.g., it can have many different implementations of addiion when the `+` sign is encountered.) The *type*s of the arguments and the number of arguments are used for dispatch.
|
`Julia` can have many methods for a single generic function. (E.g., it can have many different implementations of addition when the `+` sign is encountered.) The *type*s of the arguments and the number of arguments are used for dispatch.
|
||||||
|
|
||||||
|
|
||||||
Here the number of arguments is used:
|
Here the number of arguments is used:
|
||||||
@ -474,7 +474,7 @@ Many different computer languages implement `map`, broadcasting is less common.
|
|||||||
## Plots
|
## Plots
|
||||||
|
|
||||||
|
|
||||||
The following commands use the `Plots` package. The `Plots` package expects a choice of backend. We will use `gr` unless, but other can be substituted by calling an appropriate command, suchas `pyplot()` or `plotly()`.
|
The following commands use the `Plots` package. The `Plots` package expects a choice of backend. We will use `gr` unless, but other can be substituted by calling an appropriate command, such as `pyplot()` or `plotly()`.
|
||||||
|
|
||||||
|
|
||||||
```{julia}
|
```{julia}
|
||||||
@ -526,7 +526,7 @@ Arguments of interest include
|
|||||||
|:--------------:|:------------------------------------------------------:|
|
|:--------------:|:------------------------------------------------------:|
|
||||||
| `legend` | A boolean, specify `false` to inhibit drawing a legend |
|
| `legend` | A boolean, specify `false` to inhibit drawing a legend |
|
||||||
| `aspect_ratio` | Use `:equal` to have x and y axis have same scale |
|
| `aspect_ratio` | Use `:equal` to have x and y axis have same scale |
|
||||||
| `linewidth` | Ingters greater than 1 will thicken lines drawn |
|
| `linewidth` | Integers greater than 1 will thicken lines drawn |
|
||||||
| `color` | A color may be specified by a symbol (leading `:`). |
|
| `color` | A color may be specified by a symbol (leading `:`). |
|
||||||
| | E.g., `:black`, `:red`, `:blue` |
|
| | E.g., `:black`, `:red`, `:blue` |
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
{{< include ../_common_code.qmd >}}
|
{{< include ../_common_code.qmd >}}
|
||||||
|
|
||||||
`Julia` allows the use of *Unicode* symbols to replace variable names and for function calls. Unicode operations are entered in this pattern `\name[tab]`. That is a slash, `\`, the name (e.g., `alpha`), and then a press of the `tab` key.
|
`Julia` allows the use of *Unicode* symbols to replace variable names and for function calls. Unicode operations are entered in this pattern `\name[tab]`. That is a backslash, `\`, the name (e.g., `alpha`), and then a press of the `tab` key.
|
||||||
|
|
||||||
|
|
||||||
In these notes, the following may appear as variable or function names
|
In these notes, the following may appear as variable or function names
|
||||||
|
Loading…
Reference in New Issue
Block a user