James Marsden as David Sumner: Marsden's Davis is not a mathematician like Hoffman's, but in the movie world he's the same thing — he's an
adapting screenwriter (his movie is even a «universal
tale of the
survival and the fighting spirit, AKA Straw Dogs).