Mercurial > web-octave
annotate pages/index.md @ 263:f53f7a481d2b
* Gemfile.lock: Bundle update
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Tue, 28 Sep 2021 10:04:31 +0900 |
parents | 94923eb107cb |
children | 1494da0f0bd9 |
rev | line source |
---|---|
215 | 1 --- |
2 layout: default | |
3 permalink: index | |
4 --- | |
5 | |
241
598d7f098082
Overhaul website, less JavaScript, more FontAwesome.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
228
diff
changeset
|
6 <!-- |
215 | 7 <div class="primary callout" data-closable> |
224
e69093ab4992
Improve Release Notes display.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
215
diff
changeset
|
8 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
|
9 <a href="https://octave.discourse.group/">Octave Discourse</a>. |
215 | 10 <button class="close-button" aria-label="Dismiss alert" type="button" data-close> |
11 <span aria-hidden="true">×</span> | |
12 </button> | |
13 </div> | |
241
598d7f098082
Overhaul website, less JavaScript, more FontAwesome.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
228
diff
changeset
|
14 --> |
215 | 15 |
16 <div class="grid-x grid-margin-x"> | |
241
598d7f098082
Overhaul website, less JavaScript, more FontAwesome.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
228
diff
changeset
|
17 <div class="cell medium-4 align-top"> |
215 | 18 <a href="#" data-open="meshModal"> |
19 <img src="{{ "/img/example-mesh.svg" | relative_url }}" | |
241
598d7f098082
Overhaul website, less JavaScript, more FontAwesome.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
228
diff
changeset
|
20 style="max-height: 250px; width: auto;" alt="Example mesh"> |
215 | 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> | |
224
e69093ab4992
Improve Release Notes display.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
215
diff
changeset
|
30 <p><b>Scientific Programming Language</b></p> |
215 | 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> | |
37 </div> | |
38 | |
224
e69093ab4992
Improve Release Notes display.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
215
diff
changeset
|
39 |
246
41e6507acab4
Improve bug reporting section.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
241
diff
changeset
|
40 ### <i class="fas fa-code"></i> Syntax Examples |
215 | 41 |
42 The Octave syntax is largely compatible with Matlab. | |
43 The Octave interpreter can be run in | |
44 <a href="#" data-open="guiModal">GUI mode</a>, as a console, | |
45 or invoked as part of a shell script. | |
46 More Octave examples can be found in | |
47 [the Octave wiki]({{ site.wiki_url }}/Using_Octave). | |
48 | |
49 <div class="grid-x grid-margin-x"> | |
50 <div class="cell medium-4" > | |
51 <p> | |
52 Solve systems of equations with linear algebra operations on | |
53 <strong>vectors</strong> and <strong>matrices</strong>. | |
54 </p> | |
55 </div> | |
56 <div class="cell auto"> | |
57 {%- include code1.html -%} | |
58 <!-- | |
227
9057b6832c9a
Improve syntax highlight with fenced markup.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
224
diff
changeset
|
59 ```octave |
215 | 60 b = [4; 9; 2] # Column vector |
61 A = [ 3 4 5; | |
62 1 3 1; | |
63 3 5 9 ] | |
64 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
|
65 ``` |
215 | 66 --> |
67 </div> | |
68 </div> | |
69 | |
70 <div class="grid-x grid-margin-x"> | |
71 <div class="cell medium-4"> | |
72 <p> | |
73 Visualize data with <strong>high-level plot commands</strong> | |
74 in 2D and 3D. | |
75 </p> | |
76 </div> | |
77 <div class="cell auto"> | |
78 {%- include code2.html -%} | |
79 <!-- | |
227
9057b6832c9a
Improve syntax highlight with fenced markup.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
224
diff
changeset
|
80 ```octave |
215 | 81 x = -10:0.1:10; # Create an evenly-spaced vector from -10..10 |
82 y = sin (x); # y is also a vector | |
83 plot (x, y); | |
84 title ("Simple 2-D Plot"); | |
85 xlabel ("x"); | |
86 ylabel ("sin (x)"); | |
227
9057b6832c9a
Improve syntax highlight with fenced markup.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
224
diff
changeset
|
87 ``` |
215 | 88 --> |
89 <a href="#" class="button small-only-expanded" data-open="plotModal">Click here to see the plot output</a> | |
90 </div> | |
91 </div> | |
92 | |
93 | |
262
94923eb107cb
* pages/index.md: User other section icon for packages
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
247
diff
changeset
|
94 ### <i class="fas fa-cubes"></i> Octave Packages |
215 | 95 |
241
598d7f098082
Overhaul website, less JavaScript, more FontAwesome.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
228
diff
changeset
|
96 GNU Octave can be extended by packages. Find them at: |
247
bc6c8f2ed4fb
Update Octave Packages URL.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
246
diff
changeset
|
97 - [Octave Packages]({{ site.packages_url }}) |
228
236c0b1f7515
Generalize Octave packges subsection.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
227
diff
changeset
|
98 - [Octave Forge]({{ site.sourceforge_url }}) |
215 | 99 |
100 | |
241
598d7f098082
Overhaul website, less JavaScript, more FontAwesome.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
228
diff
changeset
|
101 ### <i class="fas fa-tools"></i> Development |
215 | 102 |
103 Octave is free software licensed under the | |
104 [GNU General Public License (GPL)]({{ "license.html" | relative_url }}). | |
105 Assuming you have Mercurial installed on your machine you may obtain the latest | |
106 development version of Octave sources with the following command: | |
107 | |
227
9057b6832c9a
Improve syntax highlight with fenced markup.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
224
diff
changeset
|
108 ``` |
215 | 109 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
|
110 ``` |
215 | 111 |
241
598d7f098082
Overhaul website, less JavaScript, more FontAwesome.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
228
diff
changeset
|
112 ### <i class="fas fa-rss"></i> [News]({{ "/news.html" | relative_url }}) |
215 | 113 |
114 {% assign latest_post = site.posts.first %} | |
115 {% if latest_post %} | |
116 <div class="primary callout"> | |
241
598d7f098082
Overhaul website, less JavaScript, more FontAwesome.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
228
diff
changeset
|
117 <a class="float-right button tiny warning" href="{{ "/feed.xml" | relative_url }}"> |
598d7f098082
Overhaul website, less JavaScript, more FontAwesome.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
228
diff
changeset
|
118 RSS |
598d7f098082
Overhaul website, less JavaScript, more FontAwesome.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
228
diff
changeset
|
119 </a> |
598d7f098082
Overhaul website, less JavaScript, more FontAwesome.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
228
diff
changeset
|
120 <p> |
598d7f098082
Overhaul website, less JavaScript, more FontAwesome.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
228
diff
changeset
|
121 <strong><a href="{{ latest_post.url | relative_url }}">{{ latest_post.title }}</a></strong> |
598d7f098082
Overhaul website, less JavaScript, more FontAwesome.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
228
diff
changeset
|
122 – {{ latest_post.date | date: "%b %-d, %Y" }} |
598d7f098082
Overhaul website, less JavaScript, more FontAwesome.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
228
diff
changeset
|
123 </p> |
215 | 124 <div class="entry-content">{{ latest_post.excerpt }}</div> |
125 </div> | |
126 {% endif %} | |
127 | |
128 <div class="large reveal" id="meshModal" data-reveal> | |
129 <img src="{{ "/img/example-mesh.svg" | relative_url }}" alt="Example mesh"> | |
130 <button class="close-button" data-close aria-label="Close modal" type="button"> | |
131 <span aria-hidden="true">×</span> | |
132 </button> | |
133 </div> | |
134 | |
135 <div class="large reveal" id="plotModal" data-reveal> | |
136 <img src="{{ "/img/example-plot.svg" | relative_url }}" alt="Example plot"> | |
137 <button class="close-button" data-close aria-label="Close modal" type="button"> | |
138 <span aria-hidden="true">×</span> | |
139 </button> | |
140 </div> | |
141 | |
142 <div class="large reveal" id="guiModal" data-reveal> | |
143 <img src="{{ "/img/GNU_Octave_4-4-0_screenshot_1600x900.png" | relative_url }}" alt="GNU Octave GUI screenshot"> | |
144 <button class="close-button" data-close aria-label="Close modal" type="button"> | |
145 <span aria-hidden="true">×</span> | |
146 </button> | |
147 </div> |