comparison index.md @ 217:6de5c7dcc43f

maint: add "pages/menu" subfolder to get a better overview. Pages in this folder have a menu entry at the top bar of the website.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Tue, 15 Sep 2020 14:55:06 +0900
parents
children
comparison
equal deleted inserted replaced
216:c8126c010d67 217:6de5c7dcc43f
1 ---
2 layout: default
3 permalink: index
4 ---
5
6 <div class="primary callout" data-closable>
7 <h5>
8 Need help? Try out our new user and developer forum
9 <a href="https://octave.discourse.group/">Octave Discourse</a>.
10 </h5>
11 <button class="close-button" aria-label="Dismiss alert" type="button" data-close>
12 <span aria-hidden="true">&times;</span>
13 </button>
14 </div>
15
16 <div class="grid-x grid-margin-x">
17 <div class="cell medium-6">
18 <a href="#" data-open="meshModal">
19 <img src="{{ "/img/example-mesh.svg" | relative_url }}"
20 style="height: 400px; width: auto;" alt="Example mesh">
21 </a>
22 </div>
23 <div class="cell auto">
24 <h2 class="landing-page-logo">
25 <img src="{{ "/img/octave-logo.svg" | relative_url }}"
26 style="float: left; height: 48px; width: auto; padding-right: 0.5rem"
27 alt="GNU Octave logo">
28 GNU Octave
29 </h2>
30 <h4>Scientific Programming Language</h4>
31 <ul>
32 <li>Powerful mathematics-oriented syntax with built-in 2D/3D plotting and visualization tools</li>
33 <li>Free software, runs on GNU/Linux, macOS, BSD, and Microsoft Windows</li>
34 <li>Drop-in compatible with many Matlab scripts</li>
35 </ul>
36 <div class="button-group stacked">
37 <a href="{{ "download.html" | relative_url }}" class="button">Download</a>
38 <a href="{{ site.docs_url }}" class="button">Documentation</a>
39 </div>
40 </div>
41 </div>
42
43 ### Syntax Examples
44
45 The Octave syntax is largely compatible with Matlab.
46 The Octave interpreter can be run in
47 <a href="#" data-open="guiModal">GUI mode</a>, as a console,
48 or invoked as part of a shell script.
49 More Octave examples can be found in
50 [the Octave wiki]({{ site.wiki_url }}/Using_Octave).
51
52 <div class="grid-x grid-margin-x">
53 <div class="cell medium-4" >
54 <p>
55 Solve systems of equations with linear algebra operations on
56 <strong>vectors</strong> and <strong>matrices</strong>.
57 </p>
58 </div>
59 <div class="cell auto">
60 {%- include code1.html -%}
61 <!--
62 {%- highlight octave -%}
63 b = [4; 9; 2] # Column vector
64 A = [ 3 4 5;
65 1 3 1;
66 3 5 9 ]
67 x = A \ b # Solve the system Ax = b
68 {%- endhighlight -%}
69 -->
70 </div>
71 </div>
72
73 <div class="grid-x grid-margin-x">
74 <div class="cell medium-4">
75 <p>
76 Visualize data with <strong>high-level plot commands</strong>
77 in 2D and 3D.
78 </p>
79 </div>
80 <div class="cell auto">
81 {%- include code2.html -%}
82 <!--
83 {%- highlight octave -%}
84 x = -10:0.1:10; # Create an evenly-spaced vector from -10..10
85 y = sin (x); # y is also a vector
86 plot (x, y);
87 title ("Simple 2-D Plot");
88 xlabel ("x");
89 ylabel ("sin (x)");
90 {%- endhighlight -%}
91 -->
92 <a href="#" class="button small-only-expanded" data-open="plotModal">Click here to see the plot output</a>
93 </div>
94 </div>
95
96
97 ### Octave Forge
98
99 [Octave Forge]({{ site.sourceforge_url }}) is a collection of high quality
100 packages for GNU Octave, similar to Matlab's toolboxes.
101 To install a package, use the `pkg` command from the Octave prompt by typing:
102
103 {% highlight text %}
104 pkg install -forge package_name
105 pkg load package_name
106 {% endhighlight %}
107
108 <a href="{{ site.sourceforge_url }}/packages.php" class="button small-only-expanded">Browse Packages</a>
109
110
111 ### Development
112
113 Octave is free software licensed under the
114 [GNU General Public License (GPL)]({{ "license.html" | relative_url }}).
115 Assuming you have Mercurial installed on your machine you may obtain the latest
116 development version of Octave sources with the following command:
117
118 {% highlight text %}
119 hg clone https://www.octave.org/hg/octave
120 {% endhighlight %}
121
122 [Get involved]({{ "/get-involved.html" | relative_url }}) in Octave development.
123
124
125 {% assign latest_post = site.posts.first %}
126 {% if latest_post %}
127 <div class="primary callout">
128 <a class="float-right button tiny warning" href="{{ "/feed.xml" | relative_url }}">
129 RSS
130 </a>
131 <h3 class="entry-title">
132 <a href="{{ latest_post.url | relative_url }}">{{ latest_post.title }}</a>
133 </h3>
134 <p class="post-meta">{{ latest_post.date | date: "%b %-d, %Y" }}</p>
135 <div class="entry-content">{{ latest_post.excerpt }}</div>
136 </div>
137 {% endif %}
138
139 <div class="large reveal" id="meshModal" data-reveal>
140 <img src="{{ "/img/example-mesh.svg" | relative_url }}" alt="Example mesh">
141 <button class="close-button" data-close aria-label="Close modal" type="button">
142 <span aria-hidden="true">&times;</span>
143 </button>
144 </div>
145
146 <div class="large reveal" id="plotModal" data-reveal>
147 <img src="{{ "/img/example-plot.svg" | relative_url }}" alt="Example plot">
148 <button class="close-button" data-close aria-label="Close modal" type="button">
149 <span aria-hidden="true">&times;</span>
150 </button>
151 </div>
152
153 <div class="large reveal" id="guiModal" data-reveal>
154 <img src="{{ "/img/GNU_Octave_4-4-0_screenshot_1600x900.png" | relative_url }}" alt="GNU Octave GUI screenshot">
155 <button class="close-button" data-close aria-label="Close modal" type="button">
156 <span aria-hidden="true">&times;</span>
157 </button>
158 </div>