test function for evaluation and diffentiation of cyclic n-roots system