handwritten Rey-like curve equation