curve equation determination