Transcendental log cost function