build based on a5f1ac6

This commit is contained in:
Documenter.jl
2023-09-08 14:43:02 +00:00
parent 508ca1e8f0
commit 05d25f5bff
22 changed files with 43 additions and 43 deletions

View File

@@ -7517,7 +7517,7 @@ a.anchor-link {
<div class="alert alert-block alert-info">
<b>Tip:</b> Did you know that Jupyter stands for Julia, Python and R?
</div>
<h3 id="How-to-start-a-Jupyter-nootebook-in-Julia">How to start a Jupyter nootebook in Julia<a class="anchor-link" href="#How-to-start-a-Jupyter-nootebook-in-Julia"></a></h3><p>To run a Julia Jupyther notebook, open a Julia REPL and type</p>
<h3 id="How-to-start-a-Jupyter-notebook-in-Julia">How to start a Jupyter notebook in Julia<a class="anchor-link" href="#How-to-start-a-Jupyter-notebook-in-Julia"></a></h3><p>To run a Julia Jupyter notebook, open a Julia REPL and type</p>
<div class="highlight"><pre><span></span><span class="n">julia</span><span class="o">&gt;</span><span class="w"> </span><span class="p">]</span>
<span class="n">pkg</span><span class="o">&gt;</span><span class="w"> </span><span class="n">add</span><span class="w"> </span><span class="n">IJulia</span>
<span class="n">julia</span><span class="o">&gt;</span><span class="w"> </span><span class="k">using</span><span class="w"> </span><span class="n">IJulia</span>
@@ -8026,7 +8026,7 @@ a.anchor-link {
<div class="jp-InputArea jp-Cell-inputArea"><div class="jp-InputPrompt jp-InputArea-prompt">
</div><div class="jp-RenderedHTMLCommon jp-RenderedMarkdown jp-MarkdownOutput" data-mime-type="text/markdown">
<div class="alert alert-block alert-success">
<b>Question:</b> Which will be the value of `x` in the last line ? (Think your answer before executing next cell to find out the result)
<b>Question:</b> What will be the value of `x` in the last line ? (Think your answer before executing next cell to find out the result)
</div>
</div>
</div>
@@ -8056,7 +8056,7 @@ a.anchor-link {
<div class="jp-InputArea jp-Cell-inputArea"><div class="jp-InputPrompt jp-InputArea-prompt">
</div><div class="jp-RenderedHTMLCommon jp-RenderedMarkdown jp-MarkdownOutput" data-mime-type="text/markdown">
<h2 id="Functions">Functions<a class="anchor-link" href="#Functions"></a></h2><p>Julia is very much a functional programming language. In consequence, Julia is more centered on functions than on types. This is in contrast to object-oriented languages, which are more centered on types (classes). For instance, you don't need to know the details of the Julia type system to learn parallel programming in Julia, but you need to have a quite advanced knowledge of how Julia functions work.</p>
<h3 id="Defining-functions">Defining functions<a class="anchor-link" href="#Defining-functions"></a></h3><p>Functions are defined as shown in next cell. The closing <code>end</code> is necessary. Do to forget it! However, the <code>return</code> is optional. The value of last line is returned by default. Indentation is recommended, but it is also optional. That's why the closing <code>end</code> is needed.</p>
<h3 id="Defining-functions">Defining functions<a class="anchor-link" href="#Defining-functions"></a></h3><p>Functions are defined as shown in next cell. The closing <code>end</code> is necessary. Do not forget it! However, the <code>return</code> is optional. The value of last line is returned by default. Indentation is recommended, but it is also optional. That's why the closing <code>end</code> is needed.</p>
</div>
</div>
</div>
@@ -8135,7 +8135,7 @@ a.anchor-link {
</div>
<div class="jp-InputArea jp-Cell-inputArea"><div class="jp-InputPrompt jp-InputArea-prompt">
</div><div class="jp-RenderedHTMLCommon jp-RenderedMarkdown jp-MarkdownOutput" data-mime-type="text/markdown">
<p>Mathematical operators can also be broadcasted (like in Matlab). The following cell won't work. If we want to multiply element by element, we can use the broadcasted version below.</p>
<p>Mathematical operators can also be broadcasted (like in Matlab). Multiplying the vectors <code>a * b</code> directly won't work. If we want to multiply element by element, we can use the broadcasted version below.</p>
</div>
</div>
</div>
@@ -8161,7 +8161,7 @@ a.anchor-link {
<div class="jp-InputArea jp-Cell-inputArea"><div class="jp-InputPrompt jp-InputArea-prompt">
</div><div class="jp-RenderedHTMLCommon jp-RenderedMarkdown jp-MarkdownOutput" data-mime-type="text/markdown">
<div class="alert alert-block alert-success">
<b>Question:</b> Which will be the value of `x` in the last line ?
<b>Question:</b> What will be the value of `x` in the last line ?
</div>
</div>
</div>
@@ -9122,7 +9122,7 @@ a.anchor-link {
</div>
<div class="jp-InputArea jp-Cell-inputArea"><div class="jp-InputPrompt jp-InputArea-prompt">
</div><div class="jp-RenderedHTMLCommon jp-RenderedMarkdown jp-MarkdownOutput" data-mime-type="text/markdown">
<h3 id="Arrays-of-any-element-type">Arrays of any element type<a class="anchor-link" href="#Arrays-of-any-element-type"></a></h3><p>Arrays of fixed element type seem to be very rigid, right? Python list have not this limitation. However, we can use arrays of <code>Any</code> type, which are as flexible as Python lists, or even more since they can also contain functions.</p>
<h3 id="Arrays-of-any-element-type">Arrays of any element type<a class="anchor-link" href="#Arrays-of-any-element-type"></a></h3><p>Arrays of fixed element type seem to be very rigid, right? Python list do not this limitation. However, we can use arrays of the <code>Any</code> type, which are as flexible as Python lists, or even more since they can also contain functions.</p>
</div>
</div>
</div>