Conversion Functions; Array/Matrix Functions - IBM 5110 Basic Introduction

Table of Contents

Advertisement

c
c
CONVERSION FUNCTIONS
BASIC has some built-in ways to convert values from one measuring
system to another.
DEG(X)
RAD(X)
CHR(X)
CEN(X)
FAH(X)
NUM(C)
Gives the number of degrees in X radians.
Gives the number of radians in X degrees.
Gives the equivalent character string of arithmetic
expression X.
Gives the centigrade (Celsius) equivalent of X degrees
Fahrenheit.
Gives the Fahrenheit equivalent of X degrees centigrade
(Celsius).
Gives the arithmetic value of character string C.
ARRAY/MATRIX FUNCTIONS
Several BASIC functions allow you to operate on all the elements of
an array by a single reference to the array. These functions are as
follows:
AIDX(A)
DET(A)
DIDX(A)
(A)=IDN
INV(A)
PRD(A)
SUM(A)
TRN(A)
Gives the indexed locations of the elements in array A
in ascending order.
Gives the determinant of array A.
Gives the indexed locations of the elements in array A
in descending order.
Gives the identity matrix of array A.
Gives the inverse of matrix A.
Gives the product of all the elements of array A.
Gives the sum of the elements of array A.
Gives the transpose matrix of array A.
More Things You Can Do With BASIC
115
c
c
CONVERSION FUNCTIONS
BASIC has some built-in ways to convert values from one measuring
system to another.
DEG(X)
RAD(X)
CHR(X)
CEN(X)
FAH(X)
NUM(C)
Gives the number of degrees in X radians.
Gives the number of radians in X degrees.
Gives the equivalent character string of arithmetic
expression X.
Gives the centigrade (Celsius) equivalent of X degrees
Fahrenheit.
Gives the Fahrenheit equivalent of X degrees centigrade
(Celsius).
Gives the arithmetic value of character string C.
ARRAY/MATRIX FUNCTIONS
Several BASIC functions allow you to operate on all the elements of
an array by a single reference to the array. These functions are as
follows:
AIDX(A)
DET(A)
DIDX(A)
(A)=IDN
INV(A)
PRD(A)
SUM(A)
TRN(A)
Gives the indexed locations of the elements in array A
in ascending order.
Gives the determinant of array A.
Gives the indexed locations of the elements in array A
in descending order.
Gives the identity matrix of array A.
Gives the inverse of matrix A.
Gives the product of all the elements of array A.
Gives the sum of the elements of array A.
Gives the transpose matrix of array A.
More Things You Can Do With BASIC
115

Advertisement

Table of Contents
loading

Table of Contents