Man, that title rings a bell but I had to look it up again. You're probably thinking of a book like 'The Heartless Theorem' or maybe 'A Calculated Affair'? Sometimes those titles blend together in the science-fiction romance niche. If it's the one I'm half-remembering, it usually involves a hyper-logical protagonist—think a scientist, AI, or alien—who operates purely on cold, hard logic. They're presented with a problem, often emotional or social, that their 'heartless' framework can't solve.
The core plot typically forces them to confront the data point that doesn't fit: a person who inspires irrational attachment. The fun isn't in the big emotional payoff, which can be predictable, but in the minute observations of the character's internal logic breaking down. The last book I read like this spent pages detailing the protagonist's failed predictive models about their love interest's behavior, which was way more engaging than the final confession.
I found the endings can be a letdown if the character's change feels too sudden, like flipping a switch from robot to poet.