Tandy 1000 Basic Reference Manual page 316

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10 I
BASIC
Ke.ywords
SQR
Function
SQR( number)
Returns the square root of
number.
Number
must be greater than zero.
BASIC
always returns the result as a single precision number
unless you specified the
/D
switch when starting up
BASIC.
Example
P R I N T S Q R ( 1 5 5 . 7 )
prints 12.47798.
Sample Program
6 8 0 I N P U T " T O T A L
R E S I S T A N C E ( O H M S ) " ;
R
690 I N P U T " T O T A L
REACTANCE (OHMS)";
X
7 0 0
2
=
S Q R ( ( R
*
R )
+
( X
*
X I )
7 1 0 P R I N T " T O T A L
IMPEDANCE (OHMS)
I S "
2
This program computes the total impedance for series circuits.
314

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents