little reordering for clarity
added square/cube root operators