Love, analytically: 'Rosie Project' author probes the geek heart