Theta functions of arbitrary order and their derivatives