I can do some operations on turing machine, but I use the binary forms of numbers, as the computers do. I wonder whether can I write decimal numbers on its tape and do calculation? Thanks in advance.
Asked
Active
Viewed 1,096 times
0
-
2Of course you can. It all depends on your input alphabet. – clemens Sep 15 '17 at 12:54
-
Thank you macmoonshine, it was helpful. – igelr Sep 15 '17 at 12:56
1 Answers
1
Decimal numbers are strings of symbols. Thus they can be written on a TM tape and be manipulated in any computable way. This includes of course the normal arithmetic calculations.
Of course, you can only represent and manipulate decimal numbers with a finite number of significant digits (or one infinite one, but that does not seem useful). So in decimal, for example you cannot represent 1/3. If all rational numbers could occur, maybe the representation as fractions would be better, since it is always finite.

Peter Leupold
- 1,162
- 1
- 9
- 16