User`s guide
9-20 Agilent 4155C/4156C User’s Guide Vol.2, Edition 6
Built-in Functions
@L2G
@L2G
Returns the slope of LINE2.
Syntax: @L2G
If there are Y1 and Y2 axes, this function returns the value for selected axis.
This function calculates the slope by using the following formula:
• If X and Y axes are both linear scaling:
α = (y
1
− y
0
)/(x
1
− x
0
)
• If X axis is logarithmic scaling, and Y axis is linear scaling:
α = (y
1
− y
0
)/(log x
1
− log x
0
)
• If X axis is linear scaling, and Y axis is logarithmic scaling:
α = (log y
1
− log y
0
)/(x
1
− x
0
)
• If X and Y axes are both logarithmic scaling:
α = (log y
1
− log y
0
)/(log x
1
− log x
0
)
Where,
α : Slope of LINE2.
x
0
,y
0
,x
1
,y
1
: X and Y coordinate values at the two points where LINE2 intercepts
the perimeter of the plotting area.