Download Interactive Power Systems Calculator
Transcript
1.000 0.000 ;
-0.000 1.000
]
ipsys> printf("% 3.3f ", a-c);
Incorrect argument dimensions: Matrix::sub(Matrix &)
Line 23: printf("% 3.3f ", a-c);
General purpose functions include:
cos(real or matrix)
sin(real or matrix)
tan(real or matrix)
abs(real or matrix)
exp(real or matrix)
srand(real or none)
rand()
min(real or matrix)
max(real or matrix)
Rows(matrix)
Cols(matrix)
Range(real,real)
Rank(matrix)
Cond(matrix)
Idn(real)
Trn(matrix)
EDec(matrix,real)
Clust(matrix,real)
Matrix(string)
Returns cos(); argument is in radians
Returns sin(); argument is in radians
Returns tan(); argument is in radians
Returns abs()
Returns natural exponent
Seeds random number generator
Returns a random integer between 0 and RAND MAX
Returns minimum entry in a matrix
Returns maximum entry in a matrix
Returns number of rows of a matrix
Returns number of columns of a matrix
Returns a row vector of integer numbers in the range
Returns rank of a matrix
Returns condition number of a matrix
Returns identity matrix of requested dimension
Returns transpose of a given matrix
Returns epsilon decomposition of a matrix
Returns clustered matrix
Returns a matrix read from file
Table 2.2: General purpose functions
Single argument math functions can take either a real number or a matrix.
In the case of a matrix input, function is applied to each matrix entry. The
four arithmetic operations have the usual meaning for real numbers. If one
of the operands is a matrix, the result depends on which of the operands is
the matrix. For addition/subtraction, if both operands are matrices, they
must be of the same dimensions and the result is the regular matrix addition/subtraction. If one of the operands is a matrix and the other one is a
13