MediaWiki:Sitenotice:
2024-03-02: The wiki ran out of disk space, so things were not working. This has been resolved by adding another 5GB of quota ;-) Thanks to Tim Lindner for reporting the issues. 2020-05-17: If a page gives you an error about some revision not being found, just EDIT the page and the old page should appear in the editor. If it does, just SAVE that and the page should be restored. OS-9 Al (talk) 12:22, 17 May 2020 (CDT)

SQRT for Color Basic

From CoCopedia - The Tandy/Radio Shack Color Computer Wiki
Jump to navigation Jump to search

Issue: Microcomputer NEWS, April 1981 V3N04 Pag.11

The Square Root function in standard Color BASIC (or should I say the lack of one). The RSC-4 catalog claimed a SQR function was available in standard Color BASIC, but it is only available in Extended Color BASIC. This being the case, here is a short subroutine you can use to figure square roots in your programs:

A = your number 
B = square root (A)
10 B=A/3
20 B=.5*(B+A/B)
30 C=B*B
35 C=INT(C*10000+.5)/10000
40 IF C<>A THEN GOTO 20