Keithley 2601B Reference Manual page 306

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Series 2600B System SourceMeter® Instrument Reference Manual
Math library functions
This library is an interface to most of the functions of the ANSI C math library. All trigonometric
functions work in radians. The functions math.deg() and math.rad() convert between radians
and degrees.
Math library functions
Function
math.abs(x)
math.acos(x)
math.asin(x)
math.atan(x)
math.atan2(y, x)
math.ceil(x)
math.cos(x)
math.deg(x)
math.exp(x)
math.floor(x)
math.frexp(x)
math.ldexp(x, n)
math.log(x)
math.log10(x)
math.max(x, ...)
math.min(x, ...)
math.pi
math.pow(x, y)
math.rad(x)
math.random()
math.random(m)
math.random(m, n)
math.randomseed(x)
math.sin(x)
math.sqrt(x)
math.tan(x)
2600BS-901-01 Rev. B / May 2013
Description
Returns the absolute value of x.
Returns the arc cosine of x.
Returns the arc sine of x.
Returns the arc tangent of x.
Returns the arc tangent of y/x, but uses the signs of both parameters to
find the quadrant of the result (it also handles correctly the case of x
being zero).
Returns the smallest integer larger than or equal to x.
Returns the cosine of x.
Returns the angle x (given in radians) in degrees.
x
Returns the value e
.
Returns the largest integer smaller than or equal to x.
Returns m and e such that x = m2
absolute value of m is in the range [0.5, 1] (or zero when x is zero).
e
Returns m2
(e should be an integer).
Returns the natural logarithm of x.
Returns the base-10 logarithm of x.
Returns the maximum value among its arguments.
Returns the minimum value among its arguments.
The value of π (3.141592654).
y
Returns x
(you can also use the expression x^y to compute this value).
Returns the angle x (given in degrees) in radians.
This function is an interface to the simple pseudorandom generator
function rand provided by ANSI C.
When called without arguments, returns a uniform pseudorandom real
number in the range [0,1]. When called with an integer number m,
math.random() returns a uniform pseudorandom integer in the
range [1, m]. When called with two integer numbers m and n,
math.random() returns a uniform pseudorandom integer in the
range [m, n].
Sets x as the seed for the pseudorandom generator: equal seeds
produce equal sequences of numbers.
Returns the sine of x.
Returns the square root of x. (You can also use the expression x^0.5 to
compute this value.)
Returns the tangent of x.
Section 6: Instrument programming
e
, where e is an integer and the
6-29

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents