Israeli Prime Minister Benjamin Netanyahu told a televised address immediately after the decision that Israel fully supports Mr Trump's announcement.
"If we achieve the deal's goals in cooperation with other members of the deal, it will remain in place", Rohani said, although he also warned that Iran was ready to resume nuclear activities curbed under the deal in exchange for sanctions relief if the USA withdrawal made it impossible for Iran's economy to continue benefiting.
If Europe succeeds, "this is a victory for Iran, because it will have created a gap between the United States and Europe, " he said.
In his speech, Trump also accused Iran of destabilizing the Middle East through its support of militant groups such as Lebanon's Hezbollah, and he charged that Tehran seeks to build "nuclear-capable" ballistic missiles.
"Trump does not have the mental capacity to deal with issues", Larijani said.
He added: "It could embolden an already unsafe regime; threaten our friends with destruction; pose unacceptable dangers to America's own security; and trigger an arms race in the world's most risky region".
How that works is less than clear.
"Many of us would have liked for inspectors to get into military sites, but the alternative, which is no inspectors, looking at anything Iran is doing, and Iran's ability to restart the nuclear programs today is totally unfeasible". So far, France, Germany and the United Kingdom have all said they want to stay in the Iran deal. He also wants a tougher inspections regime and to roll a missile testing ban into the deal.
The United States will likely re-impose sanctions against Iran after 180 days, unless some other agreement is reached.
Former President Barack Obama and Republican President-elect Donald Trump shake hands during a transition planning meeting in the Oval Office at the White House on November 10, 2016 in Washington, D.C.
Noting that all are aware of the dangers of Iran obtaining a nuclear weapon, he said it could embolden an already unsafe regime, threaten friends with destruction, pose unacceptable dangers to America's own security and trigger an arms race in the world's most risky region.
There may be some room to talk.
On the streets of Tehran this evening, people were indignant over what they say their leadership sacrificed in order to cement the nuclear deal in 2015. Iran is presently India's third biggest supplier (after Iraq and Saudi Arabia), and any increase in prices will hit both inflation levels as well as the Indian rupee, which breached Rs 67 to the US dollar this week.
"Debates in our country should be informed by facts, especially debates that have proven to be divisive", he wrote, insisting that the United States was "safer" with the deal in place. Despite last-minute attempts from staff and global allies to salvage some kind of compromise or "soft" withdrawal, it has been clear for a long time that Trump was set to pull out of or at least weaken a deal he's called the "worst ever".
"We will be instituting the highest level of economic sanction", he said.
How they will make that work is anybody's guess, since Trump's decision has created a situation in which the USA could well end up sanctioning its allies.
"The Iranian people are exhausted from all the pressure but the new sanctions can not be worse than last time, because now the Europeans are not on America's side and neither are the Asians", said Mohammad Reza Behzadian, former head of Tehran's chamber of commerce.