#! mavscript-yacas TEMPLATE.txt
# oder / or
#! mavscript --yacas --init lib/init.ys TEMPLATE.txt


mavscript-yacas
---------------

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 117.2 m³
Twice the volume is 234.3456 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
a := V^(1/3) = 4.8933799255 ≈ 4.89 m.


# Anmerkungen / Notes
# -------------------
# Die Datei lib/init.ys definiert einige Funktionen, die zusammen mit Mavscript nützlich sind.
# Der Aufruf mavscript-yacas lädt diese Datei, bevor die Vorlage verarbeitet wird.
#
# nf(25/7, 3);  --> 3.571                     Zahlenwert, mit 3 Stellen nach dem Komma
# nf(25/7);     --> 3.57142857142857142857    Zahlenwert (statt Bruch)
# y :~ 25/7;    --> 3.57142857142857142857    Zuweisung des ausgewerteten Zahlenwertes (statt y:=25/7 --> 25/7)

# The file lib/init.ys defines some functions that are useful with mavscript.
# The command mavscript-yacas loads that file prior to process the template.
# 
# nf(25/7, 3);  --> 3.571                     numerical value, with 3 decimal places
# nf(25/7);     --> 3.57142857142857142857    numerical value (instead of fraction)
# y :~ 25/7;    --> 3.57142857142857142857    assignment of evaluated numerical value (instead of y:=25/7 --> 25/7)
