Skip to content

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 to AB so we can remove the *
Clone this wiki locally