Not just on Raspberry Pi, wolfram scripting engine is free and works on windows or mac too. You lose the notebook interface, but if you're just using it as a calculator, it does the job.
Oh that would make a great mcp
Oh that would make a great mcp