There are just some user interface advantages for me in having a physical calculator. The only thing stopping me from buying this is the price tag.
Of course, then a $5 calculator may serve you better ...
The first is Termux, which provides a gnu userspace atop the Android kernel. This app is pretty old, and well-tested. There is an active and helpful Termux community. But it has some downsides: 1) The version of Termux in the Google Play Store is not the preferred and maintained version, although the Play Store version does work. The preferred version is in F-Droid, but the future of F-Droid itself is uncertain in the light of recent Google policy decisions. 2) Termux does not have access to directories such as /proc, /sys etc, which prevents some gnu/Linux utilities from working and 3) The Termux filesystem layout is very non-standard, so unless a program has been packaged explicitly for Termux, installation will probably be messy. I was able to get most, but not all of the Python packages I use frequently, to run within Termux. I could not get astropy to work, for example. Termux has nice usability features like pinch-to-zoom to change the font size. Termux requests a wakelock, and if you grant the wakelock then the OS will not throttle the app when your phone is locked.
The other option is the relatively recently added "terminal" app. terminal runs a plain-vanilla Debian Linux OS within a VM. Its file system is laid out exactly as you would expect, so if you want to get iPython and lots of libraries, you can just run the Anaconda Python installation script, and it will run unmodified with no errors. Nice! You can also install other nice desktop-style apps like VeraCrypt. There are a few downsides: 1) The OS will throttle the app, and occasionally kill the app, when the app is not actively being used interactively. 2) I have found no way to change the tiny font. 3) It's a Google app, so it might disappear for no good reason, as so many Google products do.
Both of these options work especially nicely on a foldable phone, because then the tiny phone keyboard is much less of an issue. A foldable phone plus the terminal app really is a pocket Linux computer.
I've never used a Samsung phone, but I think their DeX environment might allow you to do the same things that the "terminal" app supplies.
If you can't get either of the above to work, give Termux a try. It's not full gnu/Linux, but it's pretty close.
Mathematica does everything your python interpreter does and more — but that doesn't mean python becomes useless because of that. It's good for certain things, while Mathematica is good for other things.
Similarly with calculators (especially HP calculators), which have become a bit of a lost art (an elegant weapon for a more civilized age). I use them all the time when doing any kind of engineering or hobby work. Good luck using your computer with python one-handed in a workshop next to a CNC.
One thing I do agree with is that plotting functions or working with larger matrices on calculators makes little sense.
https://en.wikipedia.org/wiki/Maxima_(software)
Cayley (1975–1993), now Magma, predates it somewhat and has recently been used to crack post Quantum cryptography candidates.
https://dl.acm.org/doi/10.1145/1089355.1089359
https://en.wikipedia.org/wiki/Magma_(computer_algebra_system...
(Maybe ggp is thinking of the Matlab clone Octave, which is?)