Keithley SourceMeter 2600 Series Reference Manual page 116

Table of Contents

Advertisement

2-64 TSP Programming Fundamentals
math.pi
math.pow(x, y)
math.rad(x)
math.sin(x)
math.sqrt(x)
math.tan(x)
math.frexp()
math.ldexp(x, n)
math.random([x],[y])
math.randomseed(x)
2600S-901-01 Rev. A / May 2006
Series 2600 System SourceMeters Reference Manual
Variable containing the value of π (3.141592654).
y
Returns x
.
Returns the value of x in radians, where x is in degrees.
Returns the trigonometric sine function of x.
Returns the non-negative square root of x.
Returns the trigonometric tangent function of x.
Splits x into a fraction f and exponent n, such that f is 0.0 or 0.5
<= | f | <= 1.0, and f * 2
f,n = math.frexp(x).
Returns the inverse of the math.frexp() function; it computes the
value
n
x * 2
When called without an argument, returns a pseudo-random real
number in the range [0, 1).
When called with number x, returns a pseudo-random integer in
the range [1,n].
When called with two arguments, x and y, returns a pseudo-
This page left blank intentionally.
random integer in the range [x, y].
Sets a "seed" for the pseudo-random generator. Equal seeds
produce equal sequences of numbers.
Return to
Section 2 topics
n
is equal to x. Both f and n are returned;

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents