comparison index.html @ 92:7609e2a6faef

maint: revert changeset 40 (2ff331fce678) .gitignore -> .hgignore.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Tue, 01 Nov 2016 00:28:55 +0100
parents
children e7efa40deb17
comparison
equal deleted inserted replaced
45:33f406425440 92:7609e2a6faef
1 ---
2 layout: default
3 ---
4
5 <section>
6 <div class="row">
7 <div class="columns medium-6">
8 <a href="#">
9 <img src="{{ "/img/mesh.png" | prepend: site.baseurl }}" />
10 </a>
11 </div>
12 <div class="columns medium-6">
13 <h2 class="home-title">
14 <img src="{{ "/img/logo.png" | prepend: site.baseurl }}" style="float: left; height: 48px; width: auto; padding-right: 0.5rem" />
15 GNU Octave
16 </h2>
17 <h3>Scientific Programming Language</h3>
18 <ul>
19 <li>Powerful mathematics-oriented syntax with built-in plotting and visualization tools</li>
20 <li>Free software, runs on GNU/Linux, Mac, BSD, and Windows</li>
21 <li>Drop-in compatible with many Matlab scripts</li>
22 </ul>
23 <div>
24 <ul class="button-group stack-for-small even-2">
25 <li><a href="#install" class="button">Download</a></li>
26 <li><a href="{{site.docs_url}}" class="button">Docs</a></li>
27 </ul>
28 </div>
29 </div>
30 </div>
31 </section>
32
33 <section id="syntax">
34 <h3>Syntax Examples</h3>
35
36 <div class="row">
37 <div class="columns medium-12">
38 <p>
39 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.
40 </p>
41 </div>
42 </div>
43
44 <div class="row">
45 <div class="columns medium-4" >
46 <p>Solve systems of equations with linear algebra operations on <strong>vectors</strong> and <strong>matrices</strong></p>
47 </div>
48 <div class="columns medium-8">
49 {% highlight matlab%}
50 b = [4; 9; 2] % Column vector
51 A = [ 3 4 5;
52 1 3 1;
53 3 5 9 ]
54 x = A \ b % Solve the system by inverting A
55 {% endhighlight %}
56 </div>
57 </div>
58
59 <div class="row">
60 <div class="columns medium-4">
61 <p>Visualize data with <strong>high-level plot commands</strong> in 2D and 3D</p>
62 </div>
63 <div class="columns medium-8">
64 {% highlight matlab %}
65 x = -10:0.1:10 % Create an evenly-spaced vector from -10..10
66 y = sin(x) % y is also a vector
67 plot(x,y)
68 {% endhighlight %}
69 <div class="text-left">
70 <a href="#" data-reveal-id="plotModal">
71 <img src="{{ "/img/plot.png" | prepend: site.baseurl }}" style="height: 12rem; width: auto;"/>
72 <span class="label">Expand</span>
73 </a>
74 </div>
75 </div>
76 </div>
77 <a class="button" href="{{site.baseurl}}/examples" >More Examples</a>
78 </section>
79
80 <section id="install">
81 <h3>Install</h3>
82 <div class="row">
83 <div class="columns medium-8">
84 {% include install.html %}
85 </div>
86 <div class="columns medium-4">
87 <a href="#" data-reveal-id="guiModal">
88 <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"/>
89 </a>
90 </div>
91 </div>
92 </section>
93
94 <section id="forge">
95 <h3>Octave Forge</h3>
96 <div class="row">
97 <div class="columns medium-9">
98 <p>
99 <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:
100 </p>
101 {% highlight text %}
102 pkg install -forge package_name
103 pkg load package_name
104 {% endhighlight %}
105 </div>
106 <div class="columns large-3">
107 <a href="http://octave.sourceforge.net/packages.php" class="button expand">Browse Packages</a>
108 </div>
109 </div>
110 </section>
111
112 <section id="develop">
113 <h3>Development</h3>
114 <p>
115 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:
116 </p>
117 <p style="margin-left:1rem"><code>hg clone http://www.octave.org/hg/octave</code></p>
118 <p>
119 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.
120 </p>
121 </section>
122
123 <section id="latest">
124 <div class="row">
125 <div class="columns small-12">
126 {% assign latest_post = site.posts.first %}
127 {% if latest_post %}
128 <div class="panel callout">
129 <a class="right" href="{{ "/feed.xml" | prepend: site.baseurl }}">
130 <span class="label warning">
131 RSS
132 </span>
133 </a>
134 <h3 class="entry-title">
135 <a href="{{ root_url }}{{ latest_post.url }}">{{ latest_post.title }}</a>
136 </h3>
137 <p class="post-meta">{{ latest_post.date | date: "%b %-d, %Y" }}</p>
138 <div class="entry-content">{{ latest_post.content }}</div>
139 </div>
140 {% endif %}
141 </div>
142 </div>
143 </section>
144
145 <div id="plotModal" class="reveal-modal" data-reveal aria-hidden="true" role="dialog">
146 <img src="{{ "/img/plot.png" | prepend: site.baseurl }}" />
147 <a class="close-reveal-modal" aria-label="Close">&#215;</a>
148 </div>
149
150 <div id="guiModal" class="reveal-modal" data-reveal aria-hidden="true" role="dialog">
151 <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"/>
152 <a class="close-reveal-modal" aria-label="Close">&#215;</a>
153 </div>