Functions

  • Compute the NAF (non-adjacent form) of num
  • We define relaxed NAF as a variant of NAF with a very small tweak.