2.4. Calculator
A scientific calculator fully compatible with FLUKA. Please look the section Function Evaluation Function evaluation for more information on the functions.

2.4.1. Ribbon
Label |
Shortcut |
Description |
---|---|---|
|
List of predefined mathematical and physical constants |
|
|
List of predefined units |
|
|
List of vector and array operations |
|
|
Masses of particles |
|
|
List of mathematical and physical functions |
|
|
Cross reference function to input cards |
2.4.2. Editing
The calculator works as a document. You can edit any function (even past ones) and by hitting [Enter] the result will be updated.
The results from the previous functions are assigned to variables ans* which can be used in subsequent functions. You have full access of the #define variables from the fluka input as well any other card
All information will be saved inside the flair project and can be recalled at any time.
2.4.3. Syntax
Syntax |
Description |
---|---|
expression |
Evaluates in the next lien the expression. The result will be stored in a unique variable named ans## |
var = value |
Set the variable with the value. No additional line will be created |
var = expr |
Sets the variable with the expression |
# |
Comment marking |
> |
Result of the previous evaluation |
2.4.4. Special Variables
- PRECISION:
defines the printed precision (default=17) up to 4 characters needed
PRECISION=10
# to set 10 digits precision- USEEXP:
Use exponent notation or free
USEEXP=1