Tolinearconverts the data in the arrayAinto linear representation and returns the results in the arrayB. The factorxis used to scale the data in the arrayAbefore it is converted; each point inAis divided byxbefore conversion is done.Tolinearis usually used to convert data in decibel representation into linear form.Tolinearis equivalent to the following BASIC lines
INTEGER I
FOR I=1 TO size(A)
B(I)=10^(A(I)/X)
NEXT I
wheresize(A)is the number of elements in the arrayA. In most cases,xis either 10 or 20.
Errors
Tolinearcauses an HTBasic error if its arguments are not all of type REAL, ifxis zero, or ifAandBdo not have the same number of elements.