Agilent Technologies 8590 TV Converter Box User Manual


 
LOG Logarithm
Prerequisite Commands: TRDEF when using a user-defined trace. ACTDEF or VARDEF when
using a user-defined variable. TS when using trace data.
Related Commands:
EXP.
Example 1
OUTPUT
718~"IP~"
OUTPUT
718;"VAIiDEF
P,OWER,O;"
Initializes spectrum analyzer
Dt$nes
a user-de$ned variable, called P-OWE& and sets
it equal to 0.
OUTPUT 718;"LOG
P,OWER,S,lO;"
P-OWER = 10x
LOG(5)
OUTPUT
718;"P,OWER?;"
Returns
value to computer:
ENTER 718;N
Assigns value to computer
variable.
DISP USING
"D.DD,K";N;"
dB"
Displays value on the computer screen.
Example 2
This example finds the natural exponential of a number and uses the LOG function to return
the
original
source value of the
EXP
function.
10 OUTPUT
718;"VARDEF
E-XP,O;"
20 OUTPUT
718;"EXP
E,XP,2,2.30259;"
30 OUTPUT
718;"E_XP?;"
40 ENTER
718;Value
50 PRINT Value
60 OUTPUT 718;"LOG
EmXP,E-XP,2.30259;"
70 OUTPUT
718*"E
XP'."
,
-
*,
80 ENTER 718;Logvalue
90 PRINT
Logvalue
100 OUTPUT
718;"VARDEF
E-XPY,O;"
110 OUTPUT
718;"EXP
E,XPY,-5,2.30259;"
120 OUTPUT
718;"E_XPY?;"
130 ENTER
718;Value2
140 PRINT Value2
150 OUTPUT
718;"LOG
E-XPY,E-XPY,2.30259;"
160 OUTPUT
718;"E,XPY?;"
170 ENTER 718;Logval
180 PRINT Logval
190 END
Dt$lnes
a variable called E-XI!
Fino!s
the natural exponential of 2.
Returns the natural exponential of 2.
I?+&
the value of the exponential.
Uses the log function on the exponential
value.
The log of the exponential value is
ap-
proximately 2.
Declares a variable called E-XPk:
Finds
the natural exponential of
-5.
Returns
the value of the natural exponen-
tial of
-5.
FVints
the value of the exponential.
Uses the log
fan&ion
on the exponential
value.
The log of the exponential value is ap-
proximately -5.
Programming Commands 5-299