[Coco] Terminal Emulator Idea
johnmarkmelanie at gmail.com
johnmarkmelanie at gmail.com
Mon Sep 18 09:33:39 EDT 2023
I want to see a retro computer running a ascii terminal emulator like a
VT100. Hooked to a Raspberry Pi 4 Model B (or Raspberry Pi 4 Model B
cluster). I would like to see someone running (Monty) Python code from there
system. Or running Linux Basic Calculator (bc). Perhaps you could calculate
Pi to 10 or more places.
jm at raspberrypi:~ $ bc -l <<<'scale=103; pi=a(1)*4; pi'
3.141592653589793238462643383279502884197169399375105820974944592307\
8164062862089986280348253421170679820
jm at raspberrypi:~ $
Note: You cannot trust the last 3 digits of this calculation.
The arctangent of 1 times 4 is 180 degrees or Pi, depending on weather the
mode of the calculator is in degrees or radians.
Each time you change the scale you need to recalculate the value of Pi. This
algorithm is useful for many computers because not all computers use the
same value of Pi. For example: PI=ATAN(1)*4: X=SIN(45*PI/180): Y=1/SQRT(2):
PRINT X-Y
This example should give you a value that is zero or very close to zero.
Enjoy!
-John Mark Mobley
Glenside Color Computer Club, Inc. Vice-President
More information about the Coco
mailing list