Luigi Federico Menabrea (4 September 1809 – 24 May 1896), later made 1st Count Menabrea and 1st Marquess of Valdora, was an Italian general, statesman and mathematician who served as the seventh prime minister of Italy from 1867 to 1869. Biography Menabrea was born at Chambéry, then part of the First French Empire. He was educated at the University of Turin, where he qualified as an engineer and became a doctor of mathematics. As an officer of engineers he replaced Cavour in 1831 at the fortress of Bard. He then became professor of mechanics and construction at the military academy and at the university of Turin. Among his notable publications: Sketch of the Analytical Engine Invented by Charles Babbage, Esq. with notes by translator Ada Lovelace (1842), which described many aspects of computer architecture and programming. King Charles Albert sent him in 1848 on diplomatic missions to secure the adhesion of Modena and Parma to Sardinia. He entered the Piedmontese parliament, and was attached successively to the Ministries of War and Foreign Affairs. Menabrea belonged to the right centre, and until the events of 1859 he believed in the possibility of a compromise between the Vatican and the state. He was major-general and commander-in-chief of the engineers in the Lombard campaign of 1859. He superintended the siege works against Peschiera, was present at Palestro and Solferino, and repaired the fortifications of some of the northern fortresses. In 1860 he became lieutenant-general and conducted the siege of Gaeta. He was appointed senator and received the title of count. Entering the Ricasoli cabinet of 1861 as minister for the navy, he held the portfolio of public works until 1864 in the succeeding Farini and Minghetti cabinets. After the war of 1866, he was chosen as Italian plenipotentiary for the negotiation of the Treaty of Prague and for the transfer of Venetia to Italy. In October 1867, he succeeded Rattazzi in the premiership, and was called upon to deal with the difficult situation created by Garibaldi's invasion of the Papal States and by the catastrophe of Mentana. Menabrea disavowed Garibaldi and instituted judicial proceedings against him; but in negotiations with the French government he protested against the retention of the temporal power by the pope and insisted on the Italian right of interference in Rome. He was in on the secret of the direct negotiations between Victor Emmanuel and Napoleon III in June