annotate index.md @ 63:0a7baadc93a4 kai

Overhaul index.md start page. Less is more! Tidy up css.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Tue, 11 Oct 2016 16:02:51 +0200
parents aa0c5c467963
children a7952259f5d3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
44
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
1 ---
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
2 layout: default
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
3 ---
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
4
63
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
5 **[GNU Octave][1]** is a high-level interpreted language,
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
6 primarily intended for numerical computations,
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
7 with built-in plotting and visualization capabilities.
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
8
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
9 [![GNU Octave 4.0.3 - Licensed under CC BY-SA 3.0][screen-small]][screen]
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
10
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
11 [1]: http://www.octave.org
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
12 [screen]: {{ "/img/screenshot-2016.png" | relative_url }}
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
13 [screen-small]: {{ "/img/screenshot-2016-small.png" | relative_url }}
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
14
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
15 The GNU Octave language is quite similar to [Matlab][2]
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
16 so that most programs are easily portable.
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
17
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
18 [2]: https://www.mathworks.com/matlab
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
19
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
20 Octave is distributed under the terms of the
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
21 [GNU General Public License][3].
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
22
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
23 [3]: https://www.gnu.org/copyleft/gpl.html
44
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
24
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
25
63
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
26
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
27 ## News ([RSS]({{ "/feed.xml" | relative_url }}))
44
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
28
63
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
29 {% for post in site.posts limit:3 %}
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
30 - [{{ post.title }}]({{ post.url | relative_url }})
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
31 ({{ post.date | date: "%b %-d, %Y" }})
44
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
32
63
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
33 {{ post.excerpt }}
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
34 {% endfor %}
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
35
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
36
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
37
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
38 ## Some Octave Examples
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
39
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
40 - Solve systems of equations with linear algebra operations on
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
41 **vectors** and **matrices**:
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
42
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
43 {% highlight octave %}
44
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
44 b = [4; 9; 2] % Column vector
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
45 A = [ 3 4 5;
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
46 1 3 1;
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
47 3 5 9 ]
63
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
48 x = A \ b % Solve $Ax = b$ by inverting A
44
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
49 {% endhighlight %}
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
50
63
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
51 - Visualize data with **high-level plot commands** in 2D and 3D:
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
52
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
53 {% highlight octave %}
44
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
54 x = -10:0.1:10 % Create an evenly-spaced vector from -10..10
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
55 y = sin(x) % y is also a vector
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
56 plot(x,y)
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
57 {% endhighlight %}
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
58
63
0a7baadc93a4 Overhaul index.md start page. Less is more! Tidy up css.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 48
diff changeset
59 ![Sine plot]({{ "/img/plot.png" | relative_url }})
44
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
60
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
61
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
62
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
63 ### Octave Forge
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
64
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
65 [Octave Forge](http://octave.sourceforge.net/)
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
66 is a central location for development of packages for GNU Octave,
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
67 similar to Matlab's toolboxes.
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
68 To install a package, use the pkg command from the Octave prompt by typing:
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
69
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
70 <div class="row">
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
71 <div class="columns medium-9">
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
72 {% highlight text %}
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
73 pkg install -forge package_name
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
74 pkg load package_name
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
75 {% endhighlight %}
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
76 </div>
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
77 <div class="columns large-3">
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
78 <a href="http://octave.sourceforge.net/packages.php" class="button expand">Browse Packages</a>
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
79 </div>
dbc6628a3c05 Drag index.html into the Markdown language.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
80 </div>