PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

GNU Octave

GNU Octave

GNU Octave is a pl created in 1988.

#183on PLDB 34Years Old 2.4kUsers
1Books 0Papers

Try now: Riju · TIO

GNU Octave is software featuring a high-level programming language, primarily intended for numerical computations. Octave helps in solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with Matlab. It may also be used as a batch-oriented language. Read more on Wikipedia...


Example from Riju:
disp("Hello, world!")
Example from hello-world:
printf("Hello World");
Example from the Hello World Collection:
#Hello World in Octave (http://www.octave.org/) printf("Hello World\n");
Example from Wikipedia:
% create figure and panel on it f = figure; % create a button group gp = uibuttongroup (f, "Position", [ 0 0.5 1 1]) % create a buttons in the group b1 = uicontrol (gp, "style", "radiobutton", "string", "Choice 1", "Position", [ 10 150 100 50 ]); b2 = uicontrol (gp, "style", "radiobutton", "string", "Choice 2", "Position", [ 10 50 100 30 ]); % create a button not in the group b3 = uicontrol (f, "style", "radiobutton","string", "Not in the group","Position", [ 10 50 100 50 ]);

Language features

Feature Supported Example Token
MultiLine Comments
Integers
% \d+
Floats
% (\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?
Strings
"Hello world"
"
Print() Debugging printf
Line Comments
% A comment
%
Comments
Semantic Indentation ϴ

Books about GNU Octave on goodreads

title author year reviews ratings rating
Scientific Computing with MATLAB and Octave Alfio Quarteroni 2003 0 10 4.10
occam.html · octave.html · xpath.html

View source

PLDB - Build the next great programming language · v2022 · Day 32 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub · feedback@pldb.com