eval.c optimized: square_of calculated sequencely, and minor optimizations