#! mavscript-beanshell TEMPLATE.txt
# oder / or
#! mavscript --beanshell --init lib/init.bsh TEMPLATE.txt


mavscript-beanshell
-------------------

Eingabe / input:
Länge / length l = 10.30 m
Breite / width b =  2.37 m
Höhe / hight   h =  4.80 m

Ausgabe / output:
Das Volumen beträgt V = l*b*h = 117.2 m³
Twice the volume is 234.3 m³

Das Objekt ist länger als breit.
The object is rather high.

Ein Würfel mit dem selben Volumen 117 m³ hat die Seitenlänge
A cube of that volume has the side length
λ = pow(V, 1./3.) = 4.893379925822716 ≈ 4.89 m.


# Anmerkungen / Notes
# -------------------
# Die Datei lib/init.bsh definiert einige Funktionen, die zusammen mit Mavscript nützlich sind.
# Der Aufruf mavscript-beanshell lädt diese Datei, bevor die Vorlage verarbeitet wird.
#
# nf(25/7, 3);  --> 3.571                     Zahlenwert, mit 3 Stellen nach dem Komma
# min(double[] liste), max(double[] liste)    Minimal- / Maximalwert einer Liste
# sin(), pow(), etc.                          statt Math.sin(), Math.pow(), etc.

# The file lib/init.bsh defines some functions that are useful with mavscript.
# The command mavscript-beanshell loads that file prior to process the template.
# 
# nf(25/7, 3);  --> 3.571                     numerical value, with 3 decimal places
# min(double[] list), max(double[] list)      minimal / maximal value of a list
# sin(), pow(), etc.                          instead of Math.sin(), Math.pow(), etc.
