"An automobile is a piece of machinery, a program is some kind of mathematical expression"
If I build a mechanical computer to output the digits of PI is that a piece of machinery, a program or a mathematical expression?
A computer is a piace of machinery capable of running programs. You're building a specialized hardware to run a program - so I guess it's still a piece of machinery even if capable of running one program.