DETECTION OF ANALYTICAL ERRORS IN COST FUNCTIONS WITH PSEUDO-VECTOR PRODUCT..