-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
153 lines (142 loc) · 5.29 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
---
layout: default
---
<section>
<div class="row">
<div class="columns medium-6">
<a href="#">
<img src="{{ "/img/mesh.png" | prepend: site.baseurl }}" />
</a>
</div>
<div class="columns medium-6">
<h2 class="home-title">
<img src="{{ "/img/logo.png" | prepend: site.baseurl }}" style="float: left; height: 48px; width: auto; padding-right: 0.5rem" />
GNU Octave
</h2>
<h3>Scientific Programming Language</h3>
<ul>
<li>Powerful mathematics-oriented syntax with built-in plotting and visualization tools</li>
<li>Free software, runs on GNU/Linux, Mac, BSD, and Windows</li>
<li>Drop-in compatible with many Matlab scripts</li>
</ul>
<div>
<ul class="button-group stack-for-small even-2">
<li><a href="#install" class="button">Download</a></li>
<li><a href="{{site.docs_url}}" class="button">Docs</a></li>
</ul>
</div>
</div>
</div>
</section>
<section id="syntax">
<h3>Syntax Examples</h3>
<div class="row">
<div class="columns medium-12">
<p>
The Octave syntax is largely compatible with <a href="http://www.mathworks.com/matlab">Matlab</a>. The Octave interpreter can be run in GUI mode, as a console, or invoked as part of a shell script.
</p>
</div>
</div>
<div class="row">
<div class="columns medium-4" >
<p>Solve systems of equations with linear algebra operations on <strong>vectors</strong> and <strong>matrices</strong></p>
</div>
<div class="columns medium-8">
{% highlight matlab%}
b = [4; 9; 2] % Column vector
A = [ 3 4 5;
1 3 1;
3 5 9 ]
x = A \ b % Solve the system by inverting A
{% endhighlight %}
</div>
</div>
<div class="row">
<div class="columns medium-4">
<p>Visualize data with <strong>high-level plot commands</strong> in 2D and 3D</p>
</div>
<div class="columns medium-8">
{% highlight matlab %}
x = -10:0.1:10 % Create an evenly-spaced vector from -10..10
y = sin(x) % y is also a vector
plot(x,y)
{% endhighlight %}
<div class="text-left">
<a href="#" data-reveal-id="plotModal">
<img src="{{ "/img/plot.png" | prepend: site.baseurl }}" style="height: 12rem; width: auto;"/>
<span class="label">Expand</span>
</a>
</div>
</div>
</div>
<a class="button" href="{{site.baseurl}}/examples" >More Examples</a>
</section>
<section id="install">
<h3>Install</h3>
<div class="row">
<div class="columns medium-8">
{% include install.html %}
</div>
<div class="columns medium-4">
<a href="#" data-reveal-id="guiModal">
<img src="https://www.gnu.org/software/octave/images/screenshot-2016-small.png" title="GNU Octave 4.0.3 - Licensed under CC BY-SA 3.0"/>
</a>
</div>
</div>
</section>
<section id="forge">
<h3>Octave Forge</h3>
<div class="row">
<div class="columns medium-9">
<p>
<a href="http://octave.sourceforge.net/">Octave Forge</a> is a central location for development of packages for GNU Octave, similar to Matlab's toolboxes. To install a package, use the pkg command from the Octave prompt by typing:
</p>
{% highlight text %}
pkg install -forge package_name
pkg load package_name
{% endhighlight %}
</div>
<div class="columns large-3">
<a href="http://octave.sourceforge.net/packages.php" class="button expand">Browse Packages</a>
</div>
</div>
</section>
<section id="develop">
<h3>Development</h3>
<p>
Octave is free software licensed under the <a href="http://www.gnu.org/copyleft/gpl.html">GNU General Public License (GPL)</a>. Assuming you have Mercurial installed on your machine you may obtain the latest development version of Octave sources with the following command:
</p>
<p style="margin-left:1rem"><code>hg clone http://www.octave.org/hg/octave</code></p>
<p>
If you want to participate in Octave development, join the <a href="https://lists.gnu.org/mailman/listinfo/octave-maintainers">maintainers@octave.org</a> mailing list.
</p>
</section>
<section id="latest">
<div class="row">
<div class="columns small-12">
{% assign latest_post = site.posts.first %}
{% if latest_post %}
<div class="panel callout">
<a class="right" href="{{ "/feed.xml" | prepend: site.baseurl }}">
<span class="label warning">
RSS
</span>
</a>
<h3 class="entry-title">
<a href="{{ root_url }}{{ latest_post.url }}">{{ latest_post.title }}</a>
</h3>
<p class="post-meta">{{ latest_post.date | date: "%b %-d, %Y" }}</p>
<div class="entry-content">{{ latest_post.content }}</div>
</div>
{% endif %}
</div>
</div>
</section>
<div id="plotModal" class="reveal-modal" data-reveal aria-hidden="true" role="dialog">
<img src="{{ "/img/plot.png" | prepend: site.baseurl }}" />
<a class="close-reveal-modal" aria-label="Close">×</a>
</div>
<div id="guiModal" class="reveal-modal" data-reveal aria-hidden="true" role="dialog">
<img src="https://upload.wikimedia.org/wikipedia/en/4/48/Octave-4.0.0-rc1-Qt5.4-Linux.png" title="Octave-4.0.0-rc1-Qt5.4-Linux by Qtguy00 - Own work. Licensed under CC BY-SA 3.0 via Wikipedia"/>
<a class="close-reveal-modal" aria-label="Close">×</a>
</div>