GNU Octave with GX-TXT – Scientific Programming and Numerical Analysis Course
by Giux 16 articles last on November 16, 2026 0 comments
Learning GNU Octave with GX-TXT
First edition completed, November 2026: 16 progressive lessons in scientific programming, numerical computing and experimental data analysis, with GNU Octave and the public APIs of the GX-TXT framework.
The GNU Octave with GX-TXT project is a complete course of 16 progressive lessons on scientific programming, numerical computing and the analysis of experimental data. It was produced within Giux-Lab, the independent software development and scientific experimentation lab that develops the open-source framework GX-TXT.
The initiative has two complementary goals:
- Teaching GNU Octave through concrete programs, experiments and scientific problems.
- Showing how to integrate numerical computing with the GX-TXT services using only the framework’s documented public APIs.
The project ran from 17 October to 16 November 2026 and comprises 16 teaching articles, organised in four modules. Each lesson takes the Octave language one step further and at the same time introduces the GX-TXT features needed to build structured, verifiable and reproducible scientific procedures. The result is a course that combines theory, programming, experimentation and rigorous data management.
The presentation video
What makes the course different
Its distinctive feature is that GNU Octave is not used merely as a numerical calculator or as an isolated environment for running scripts. The scripts are written and run in the GX-TXT Octave Script Workspace, which integrates the editor, managed program execution, the debugger and the framework’s scientific services.
The Octave language is used normally for variables, vectors, matrices, functions, loops, conditions and numerical algorithms. Operations that involve the framework, instead, go through its public APIs: identifying and reading Datasets, publishing results, managing metadata, shared numerical processing and building persistent plots. This separation teaches both programming and the design principles of interoperable scientific applications.
The course also introduces a way of working in which errors are not simply removed but studied with the debugger. Several lessons use an initial program, an intentional error and a corrected version, making the process of finding and fixing problems visible. The debugger also has its own practical guide, in the GX-TXT Script Debugger project.
The 16 lessons, in four modules
The modular structure lets you follow the course from the beginning or consult single lessons as a reference for a specific numerical method or API.
Module I — GNU Octave fundamentals
Lessons 01–04. The first module introduces the language, the programming tools and the main mathematical concepts needed to write scientific scripts.
| Lesson | Topic and experiment |
|---|---|
| 01 — Your first GNU Octave script in GX-TXT | Introduction to the Octave Script Workspace, the Script Bridge and the numeric APIs. First experiment with temperature conversions and the calculation of a mean. |
| 02 — Variables, data types and operators | Variables, arithmetic operators, precedence, numeric types and complex numbers. Building a scientific calculator with automatic checks. |
| 03 — Vectors and matrices | Analysis of the simulated measurements of three temperature sensors at six instants. Indexing, vectorised operations, statistics and publication of the Datasets. |
| 04 — Conditions, loops and functions | Simulation of Newton’s law of cooling, use of for and while loops, conditions and functions. Comparison between Euler’s method and the analytical solution. |
By the end of the module the reader knows the fundamentals of the language and can write simple scientific simulations, understanding the role of the GX-TXT execution environment.
Module II — Scientific Datasets and visualisation
Lessons 05–08. The second module introduces one of the fundamental features of the framework: managing scientific Datasets through stable identifiers and structured metadata.
| Lesson | Topic and experiment |
|---|---|
| 05 — Scientific Datasets and Variable IDs | Exploration of a real photocatalysis Dataset containing current measurements over time. Analysis of identifiers, variables, metadata and canonical schemas. |
| 06 — Selecting and reading experimental data | Processing of real acquisitions of an infrared remote-control signal, recorded with an oscilloscope. Partial reading of the data, comparison between measurements and presentation of the results. |
| 07 — Creating and publishing scientific Datasets | Generation of synthetic sine signals, construction of the scientific descriptors, definition of the metadata and single or atomic publication of several Datasets. |
| 08 — Scientific plots and debugging | Comparison of three sine signals, overlaid and multi-panel plots. Use of the debugger to find an error in the number of samples. |
This module highlights a fundamental distinction: a scientific Dataset is not just a set of numbers, but an identifiable, documented and reusable resource. GX-TXT keeps the data separate from their graphical representations, so the same values can feed different visualisations without being duplicated.
Module III — Numerical computing and data analysis
Lessons 09–12. The third module deals with fundamental mathematical methods for processing scientific measurements, with particular attention to the interpretation of the results.
| Lesson | Topic and experiment |
|---|---|
| 09 — Descriptive statistics and debugging | Calculation of means, spread, variance, standard deviation, RMS and empirical distributions. Processing of the results and error analysis. |
| 10 — Interpolation and fitting: an analytical calibration curve | Interpolation, linear regression, polynomial fitting, residual assessment and construction of a calibration curve usable in analytical chemistry. |
| 11 — Numerical differentiation and integration | Derivatives and integrals of a synthetic kinetic curve. Use of sampled data, cumulative integrals and checking the correctness of the time axis. |
| 12 — Linear algebra: analysing a spectrophotometric mixture | Determining the concentrations of three components from five spectrophotometric measurements. Matrices, rank, least squares, conditioning and singular value decomposition. |
The reader moves from simple data handling to the quantitative methods used in experimental research. The examples show how a scientific problem is translated into a mathematical model, solved numerically and verified through checks and plots.
Module IV — Advanced scientific applications
Lessons 13–16. The last module uses the knowledge acquired to tackle problems in signal analysis, chemical kinetics, electronics and spectrophotometry.
| Lesson | Topic and experiment |
|---|---|
| 13 — Spectral analysis: FFT, sampling and windows | Frequency analysis of synthetic signals. Discrete Fourier transform, FFT, sampling, aliasing, leakage and the Hann window. |
| 14 — Differential equations: chemical kinetics | Simulation of the consecutive reactions A → B → C with ordinary differential equations. Use of ode45, concentration profiles and verification of mass conservation. |
| 15 — RLC circuits and Bode diagrams | Study of a series RLC circuit: complex impedance, transfer function, resonance, quality factor, gain in decibels and phase. |
| 16 — From the UV-Vis signal to the rate constant | Integrated scientific project: processing spectrophotometric data, determining concentrations, analysing first-order kinetics and estimating the rate constant. |
The sixteenth lesson is the synthesis of the whole course. The final project starts from UV-Vis data, applies a quantitative model to obtain the concentrations and determines the rate constant by regression. The workflow includes Dataset preparation, Octave programming, use of the public numeric APIs, debugging, publication of the results and construction of persistent plots. The constant obtained in the exercise is about 0.044956 min⁻¹, against a reference value of 0.045000 min⁻¹, with a coefficient of determination R² = 0.999962.
GNU Octave and GX-TXT: the public APIs
The course progressively presents the main API families through which GNU Octave interacts with GX-TXT.
| API | Teaching role |
|---|---|
OCTAVE_SCRIPT_BRIDGE_API_v1 | Controlled access to GX-TXT services from the Octave environment. |
NUMERIC_API_v1 | Numerical operations, statistics, interpolation, regression, linear algebra and other scientific processing available in the various providers. |
CANONICAL_DATASET_API_v2 | Identification, description and reading of scientific Datasets. |
DATASET_VARIABLE_SCHEMA_API_v3 | Inspection of variables, their identifiers and declared properties. |
DATASET_PUBLICATION_API_v2 | Creation and publication of new Datasets, including atomic operations. |
PLOT_DATASET_API_v4 | Construction, validation, registration and rendering of persistent scientific plots. |
The APIs are introduced not as a plain list of commands but as programming tools. Each new service is placed in the context of the problem it solves, the structure of its arguments and the meaning of its results. Octave’s native functions and the framework’s public functions keep distinct and complementary roles.
Reproducibility, source code and materials
Reproducibility is one of the defining features of the project. The scripts are written against the official framework sources published in the repository github.com/giuxlab-hub/GX-TXT.
Each lesson states the GX-TXT version and the reference commit used to document and verify the relevant APIs. The lessons do not all have to use the same framework version: the course also follows the evolution of the software, keeping for each exercise its own technical reference.
The teaching material also distinguishes authentic experimental data from synthetic data created to demonstrate an algorithm or test a model. Where possible, script execution is illustrated with screenshots of the real interface, the Datasets, the numerical results, the plots and the debugger. The aim is to teach not only how to obtain a numerical answer, but also how to understand where it comes from and check that it is correct.
Course materials
The first edition includes:
- 16 progressive lessons, published as standalone articles.
- Theoretical explanations and in-depth notes on GNU Octave syntax.
- Complete scripts with comments and internal documentation in English.
- A teaching presentation of the GX-TXT public APIs used.
- Examples of simulation, real-data processing and numerical analysis.
- Debugging and error-correction exercises.
- Screenshots of the GX-TXT environment and of the results.
- Teaching material and downloadable scripts, as provided in the individual articles.
- Content in Italian with corresponding English versions.
The scripts are released under the GNU GPL v3 or later.
Who it is for
The project is aimed at students, teachers, researchers, laboratory technicians, developers and anyone interested in scientific programming. The examples are of particular interest to those working in chemistry, physics, electronics, instrumental analysis, signal processing and mathematical modelling.
The first modules are accessible to readers with only basic mathematical knowledge, while the advanced topics progressively require more familiarity with numerical computing.
Results and outlook
With the 16 lessons completed, the project offers a coherent path that starts from the first Octave instructions and ends with a full scientific analysis. The course shows that learning a programming language is only one part of computational scientific work: you also need to organise the data, choose the appropriate mathematical model, verify the results, find the errors, represent quantities correctly and document the conditions under which a calculation was carried out.
GNU Octave provides the tools to express algorithms. GX-TXT provides a structured environment in which those algorithms can operate on scientific Datasets that are identified, documented and managed through public interfaces. This integration is the main result of the project.
The first edition of the course is complete. The individual lessons remain available as teaching documents and may be maintained or updated as the framework evolves, keeping track of the reference versions.
The course is also available in Italian: GNU Octave con GX-TXT.
Documents and handouts
- GX-TXT Octave Script Workspace manual Complete guide to the GX-TXT GNU Octave editor: scripts, Projects, Script Runner, Datasets, Jobs and debugger, in 32 illustrated chapters.
Project log 16
- Oct 17, 2026 Lesson 01 — Your First GNU Octave Script in GX-TXT In this first lesson, you will learn how to write and run a GNU Octave script directly in GX-TXT. We will open Octave Script…
- Oct 22, 2026 Lesson 02 — Variables, Data Types and Operators in GNU Octave with GX-TXT In Lesson 02 of our GNU Octave with GX-TXT course, we explore variables, data types, arithmetic operators, vectors, and complex numbers. We build a…
- Oct 24, 2026 Lesson 03 — Vectors and Matrices in GNU Octave with GX-TXT: Temperature Measurement Analysis Learn how to work with vectors and matrices in GNU Octave through a practical temperature measurement experiment using three sensors. Explore matrix indexing, vectorized…
- Oct 25, 2026 Lesson 04 — Conditions, Loops, and Functions. Simulating Newton’s Law of Cooling Learn how to use conditional statements, for and while loops, and reusable functions in GNU Octave. Simulate Newton's law of cooling using Euler's method,…
- Oct 27, 2026 Lesson 05: Scientific Datasets and Variable IDs In Lesson 05 of the GNU Octave with GX-TXT course, learn how to explore scientific Datasets, Variable IDs, and metadata using public GX-TXT APIs.…
- Oct 28, 2026 Lesson 06 — Selecting and Reading Experimental Data with GNU Octave and GX-TXT Learn how to read and analyze real experimental data with GNU Octave and GX-TXT. Lesson 06 covers Dataset selection, partial data reading, comparison of…
- Nov 4, 2026 Lesson 07 — Creating and Publishing Scientific Datasets Learn how to create and publish scientific Datasets using GNU Octave and GX-TXT. Through two practical experiments, we generate synthetic signals, define Variables and…
- Nov 6, 2026 GNU Octave with GX-TXT — Lesson 08: Scientific Plots and Debugging Learn how to create scientific plots using GNU Octave and GX-TXT's public APIs. In Lesson 08, we compare three sine-wave signals using overlaid curves…
- Nov 6, 2026 Lesson 09 — Descriptive Statistics and Debugging Descriptive statistics transforms raw measurements into meaningful scientific information. In Lesson 09 of the GNU Octave with GX-TXT course, we explore mean, median, variance,…
- Nov 7, 2026 Lesson 10 – Interpolation and Fitting: An Analytical Calibration Curve In this GNU Octave with GX-TXT lesson, learn how to build an analytical calibration curve using linear interpolation, least-squares regression and polynomial fitting. Work…
- Nov 14, 2026 Lesson 11 – Numerical Differentiation and Integration with GNU Octave and GX-TXT A scientific curve can tell us not only how a quantity changes, but also how much accumulates over time. In Lesson 11 of our…
- Nov 15, 2026 Lesson 12 – Linear Algebra: Analyzing a Spectrophotometric Mixture with GNU Octave and GX-TXT Learn how to solve a multicomponent spectrophotometric problem using GNU Octave and GX-TXT. This lesson introduces matrix rank, least-squares estimation, singular value decomposition (SVD),…
- Nov 16, 2026 Lesson 13 — Spectral Analysis: FFT, Sampling and Windows with GNU Octave and GX-TXT Learn to identify signal frequencies using GNU Octave and GX-TXT: FFT, sampling rate, one-sided spectra, leakage and Hann windows. Follow three scripts, inspect an…
- Nov 16, 2026 Lesson 14 – Differential Equations: Chemical Kinetics with GNU Octave and GX-TXT A system of three differential equations describes the consecutive reaction A → B → C. Learn to solve it using GNU Octave ode45, verify…
- Nov 16, 2026 Lesson 15 — RLC Circuits and Bode Diagrams with GNU Octave and GX-TXT From complex impedance to Bode diagrams: simulate a series RLC circuit with GNU Octave, debug a phase-unit error, and publish canonical Datasets and native…
- Nov 16, 2026 Lesson 16 — From UV-Vis Signals to a Kinetic Rate Constant: A Complete Scientific Project with GNU Octave and GX-TXT From dual-wavelength UV-Vis signals to concentration and rate estimation: a complete GNU Octave workflow with debugging, native GX-TXT Datasets and plots.