mathomatic: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/mathomatic - from package: mathomatic

You may install the required package with command apt-get install {package}
Error in other languages:
mathomatic: bevel nie gevind nie
mathomatic: comandă negăsită
mathomatic: comando não encontrado
mathomatic: commande introuvable
mathomatic: command not found
mathomatic: käsku ei ole
mathomatic: không tìm thấy lệnh
mathomatic: komanda nerasta
mathomatic: Kommando nicht gefunden.
mathomatic: kommandot finns inte
mathomatic: komut yok
mathomatic: nie znaleziono polecenia
mathomatic: níor aimsíodh an t-ordú
mathomatic: no se encontró la orden
mathomatic: no s'ha trobat l'ordre
mathomatic: opdracht niet gevonden
mathomatic: parancs nem található
mathomatic: perintah tidak ditemukan
mathomatic: príkaz nenájdený
mathomatic: příkaz nenalezen
mathomatic: команда не найдена
mathomatic: командата не е открита
mathomatic: 命令找不到
mathomatic: コマンドが見つかりません