The "PI" comes with a version of mathematica.
very powerful software, but big learning curve.
I do have an old version 'v10?' it got expensive to keep up to date.
now it is free on the 'pi'. :-)
here are some links about it:
https://community.wolfram.com/groups/-/m/t/418132
https://www.raspberrypi.org/documentation/usage/mathematica/
https://projects.raspberrypi.org/en/projects/getting-started-with-mathematica
https://blog.wolfram.com/2019/07/11/mathematica-12-available-on-the-new-raspberry-pi-4/
https://reference.wolfram.com/language/guide/RaspberryPi.html
https://www.wolfram.com/raspberry-pi/