An ambitious exhibition at the Beaux-Arts de Paris considers the mutual rivalry between art and science over the centuries