Abstract. As with jazz, wasora is best mastered when played. Welcome thus to The wasora Realbook which, as the original, will guide you through wasora with annotated examples of increasing complexity and difficulty. The examples come with introductions, wasora inputs, terminal mimics, figures and discussions. This book is a living document that is eager to be fed by users willing to share experiences.
Wasora is a free computational tool designed to aid a cognizant expert—i.e. you, whether an engineer, scientist, technician, geek, etc—to analyze complex systems by solving mathematical problems by means of a high-level plain-text input file containing algebraic expressions, data for function interpolation, differential equations and output instructions amongst other facilities.
At a first glance, it may look as another high-level interpreted programming language, but—hopefully—it is not: wasora should be seen as a syntactically-sweetened way to ask a computer to perform a certain mathematical calculation. For example, the famous Lorenz system may be solved by writing the three differential equations into a plain-text input file as humanly-friendly as possible:
# lorenz’ seminal dynamical system
PHASE_SPACE x y z
end_time = 40
CONST sigma r b
= 10 # parameters
sigma = 28
r = 8/3
b
x_0 = -11 # initial conditions
y_0 = -16
z_0 = 22.5
# the dynamical system
= sigma*(y - x)
x_dot .= x*(r - z) - y
y_dot .= x*y - b*z
z_dot .
PRINT t x y z
Although its ultimate subject is optimization, it may hopefully help you with the tough calculations that usually appear when working with problems that have some kind of complexity, allowing the user to focus on what humans perform best—expert judgment and reaching conclusions.
wasora may be extended to perform particular computations by the implementation of dynamically-loaded plugins (such as milonga to solve the multigroup neutron diffusion equation over unstructured grids, fino to solve partial differential equations–particularly mechanical problems, or besssugo to build scientific videos out of wasora computations). See the home page for more information about plugins.
The examples contained in the wasora Real Book are taken from a variety of engineering cases where a certain amount of mathematical computations have to be performed. They illustrate how wasora can be used. Some of them are serious, some of them are funny. The structure is the same for every example:
Most of the figures are created by qdp which stands for quick & dirty plot and is a shell script that interfaces with pyxplot to generate plots of data within a single command.