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