-
Notifications
You must be signed in to change notification settings - Fork 0
Programs optimisation
Damien Vergnet (Darmo) edited this page Sep 28, 2017
·
2 revisions
Programs can be optimised by removing useless tokens like *
between variables, )
and "
before a →
or at the end of a line. By doing so, the calculator will spend less time evaluating those characters and the program will run faster.
Some examples:
-
A*(C+B)→D
the)
here is useless as the calculator will still understand even if we remove it; -
A*B
is equivalent toAB
so we can remove the*