ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

blkhole2.bas 626 B

12345678910111213141516171819202122
  1. 10 REM Compute Black-Hole Tidal Force Upon Body
  2. 20 REM G = Grav. constant
  3. 30 REM M = Mass, solar masses
  4. 40 REM L = separation, km
  5. 50 REM C = circumference, km
  6. 60 REM A = difference in acceleration, km/sec**2
  7. 70 C=100000
  8. 80 G=1.327E11
  9. 90 P=3.14159
  10. 100 M=303
  11. 110 FOR L=.002 TO .004 STEP .001
  12. 120 A=16*P*P*P*G*M*L/(C*C*C)
  13. 130 REM Convert to meters and g units
  14. 140 L1=L*1000: A=(A*1000)/9.81
  15. 150 PRINT USING "Length: ###.# meters, Tidal Force: ###.# g";L1;A
  16. 160 NEXT L
  17. 170 REM ========================
  18. 180 REM FROM "ASTRONOMICAL
  19. 190 REM COMPUTING," SKY & TELE-
  20. 200 REM SCOPE, MAY 1996
  21. 210 REM ========================
  22. 220 END