Srinivasa Ramanujan’s life is being made into a film with Slumdog Millionaire star Dev Patel starring as the legendary mathematician while a Hollywood A-lister is set to play his mentor G.H. Hardy.

The Man Who Knew Infinity: A Life of the Genius Ramanujan will be adapted by Matthew Brown from Robert Kanigel’s book of the same name.

Edward R. Pressman, who has been behind cult hits like American Psycho, Das Boot and Wall Street, is producing the biopic with Prashita Chaudhary’s Cinemorphic Entertainment Company, Jim Young and Sofia Sondervan.

“The book was introduced to me by Matthew Brown. He is very passionate about making this film. I think it is a very fascinating subject which is in some ways akin to A Beautiful Mind but also brings in a historical perspective,” Pressman told PTI.

“He was an amazing individual and a person who changed the face of India. This film also talks about his love story.”