Depending upon all things configuration, from the terminal on an aged New Out Of Box Software RPi try
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
to upgrade Mathmatica to 11 along with everything else.
Sudosudo apt-get install wolfram-engine
may work as well.