Next:
Mathematical Functions
Up:
FreeMat Help Version 1.10
Previous:
SPY Visualize Sparsity Pattern
Contents
Built In Functions
Subsections
Mathematical Functions
LOG Natural Logarithm Function
Usage
Function Internals
Example
EXP Exponential Function
Usage
Function Internals
Example
COS Trigonometric Cosine Function
Usage
Function Internals
Example
SIN Trigonometric Sine Function
Usage
Function Internals
Example
TAN Trigonometric Tangent Function
Usage
Function Internals
Example
CSC Trigonometric Cosecant Function
Usage
Function Internals
Example
SEC Trigonometric Secant Function
Usage
Function Internals
Example
COT Trigonometric Cotangent Function
Usage
Function Internals
Example
ACOS Inverse Trigonometric Arccosine Function
Usage
Function Internals
Example
ASIN Inverse Trigonometric Arcsine Function
Usage
Function Internals
Example
ATAN Inverse Trigonometric Arctangent Function
Usage
Function Internals
Example
ATAN2 Inverse Trigonometric 4-Quadrant Arctangent Function
Usage
Function Internals
Example
EXPEI Exponential Weighted Integral Function
Usage
Function Internals
Example
EONE Exponential Integral Function
Usage
Function Internals
Example
EI Exponential Integral Function
Usage
Function Internals
Example
ERFCX Complimentary Weighted Error Function
Usage
Function Internals
Example
ERFC Complimentary Error Function
Usage
Function Internals
Example
ERF Error Function
Usage
Function Internals
Example
DAWSON Dawson Integral Function
Usage
Function Internals
Example
PSI Psi Function
Usage
Function Internals
Example
GAMMA Gamma Function
Usage
Function Internals
Example
GAMMALN Log Gamma Function
Usage
Example
IDIV Integer Division Operation
Usage
Example
LOG10 Base-10 Logarithm Function
Usage
Example
LOG2 Base-2 Logarithm Function
Usage
Example
MOD Modulus Operation
Usage
Example
SQRT Square Root of an Array
Usage
Example
Base Constants
INF Infinity Constant
Usage
Function Internals
Example
NAN Not-a-Number Constant
Usage
Example
I-J Square Root of Negative One
Usage
Example
PI Constant Pi
Usage
Example
E Euler Constant (Base of Natural Logarithm)
Usage
Example
EPS Double Precision Floating Point Relative Machine Precision Epsilon
Usage
Example
FEPS Single Precision Floating Point Relative Machine Precision Epsilon
Usage
Example
TEPS Type-based Epsilon Calculation
Usage
Example
Elementary Functions
MIN Minimum Function
Usage
Function Internals
Example
MAX Maximum Function
Usage
Function Internals
Example
CEIL Ceiling Function
Usage
Example
FLOOR Floor Function
Usage
Example
CUMSUM Cumulative Summation Function
Usage
Function Internals
Example
SUM Sum Function
Usage
Function Internals
Example
MEAN Mean Function
Usage
Function Internals
Example
VAR Variance Function
Usage
Function Internals
Example
CONJ Conjugate Function
Usage
Example
REAL Real Function
Usage
Example
IMAG Imaginary Function
Usage
Example
ABS Absolute Value Function
Usage
Example
PROD Product Function
Usage
Example
STD Standard Deviation Function
Usage
Example
Inspection Functions
CLEAR Clear or Delete a Variable
Usage
Example
WHO Describe Currently Defined Variables
Usage
Example
SIZE Size of a Variable
Usage
Example
ISSET Test If Variable Set
Usage
Example
EXIST Test for Existence
Usage
Example
ISSPARSE Test for Sparse Matrix
Usage
Example
ISNAN Test for Not-a-Numbers
Usage
Example
ISINF Test for infinities
Usage
Example
WHERE Get Information on Program Stack
Usage
Example
WHICH Get Information on Function
Usage
Example
ISEMPTY Test For Variable Empty
Usage
Examples
ISA Test Type of Variable
Usage
Examples
Type Cast Functions
UINT8 Convert to Unsigned 8-bit Integer
Usage
Example
UINT16 Convert to Unsigned 16-bit Integer
Usage
Example
UINT32 Convert to Unsigned 32-bit Integer
Usage
Example
INT8 Convert to Signed 8-bit Integer
Usage
Example
INT16 Convert to Signed 16-bit Integer
Usage
Example
INT32 Convert to Signed 32-bit Integer
Usage
Example
DOUBLE Convert to 64-bit Floating Point
Usage
Example
COMPLEX Convert to 32-bit Complex Floating Point
Usage
Example
DCOMPLEX Convert to 32-bit Complex Floating Point
Usage
Example
TYPEOF Determine the Type of an Argument
Usage
Example
Array Generation and Manipulations
INT2BIN Convert Integer Arrays to Binary
Usage
Example
BIN2INT Convert Binary Arrays to Integer
Usage
Example
UNIQUE Unique
Usage
Example
SORT Sort
Usage
Example
RESHAPE Reshape Array
Usage
Example
ZEROS Array of Zeros
Usage
Example
ONES Array of Ones
Usage
Example
FIND Find Non-zero Elements of An Array
Usage
Example
DIAG Diagonal Matrix Construction/Extraction
Usage
Examples
REPMAT Array Replication Function
Usage
Example
CIRCSHIFT Circularly Shift an Array
USAGE
Example
EYE Identity Matrix
USAGE
Example
FLIPDIM Reverse a Matrix Along a Given Dimension
USAGE
Example
FLIPLR Reverse the Columns of a Matrix
USAGE
Example
FLIPUD Reverse the Columns of a Matrix
USAGE
Example
LENGTH Length of and Array
Usage
Example
LINSPACE Linearly Spaced Vector
Usage
Examples
NONZEROS Retrieve Nonzero Matrix Entries
USAGE
Example
NORM Norm Calculation
Usage
Examples
NUMEL Number of Elements in an Array
Usage
Example
PINV Moore-Penrose Pseudoinverse
Usage
Function Internals
Examples
RANK Calculate the Rank of a Matrix
Usage
Examples
RESHAPE Reshape Array
Usage
Example
SQUEEZE Remove Singleton Dimensions of an Array
Usage
Example
Random Number Generation
SEED Seed the Random Number Generator
Usage
Example
RANDBETA Beta Deviate Random Number Generator
Usage
Function Internals
Example
RANDI Uniformly Distributed Integer
Usage
Example
RANDCHI Generate Chi-Square Random Variable
Usage
Function Internals
Example
RANDEXP Generate Exponential Random Variable
Usage
Function Internals
Example
RANDP Generate Poisson Random Variable
Usage
Function Internals
Example
RANDBIN Generate Binomial Random Variables
Usage
Function Internals
Example
RANDNBIN Generate Negative Binomial Random Variables
Usage
Function Internals
Example
RANDF Generate F-Distributed Random Variable
Usage
Function Internals
Example
RANDGAMMA Generate Gamma-Distributed Random Variable
Usage
Function Internals
Example
RANDMULTI Generate Multinomial-distributed Random Variables
Usage
Function Internals
Example
RANDNCHI Generate Noncentral Chi-Square Random Variable
Usage
Function Internals
Examples
RANDNF Generate Noncentral F-Distribution Random Variable
Usage
Function Internals
Example
RANDN Gaussian (Normal) Random Number Generator
Usage
Function Internals
Example
RAND Uniform Random Number Generator
Usage
Example
Input/Ouput Functions
SETPRINTLIMIT Set Limit For Printing Of Arrays
Usage
Example
GETPRINTLIMIT Get Limit For Printing Of Arrays
Usage
Example
FOPEN File Open Function
Usage
Examples
FCLOSE File Close Function
Usage
Example
FREAD File Read Function
Usage
Example
FWRITE File Write Function
Usage
Example
FTELL File Position Function
Usage
Example
FEOF End Of File Function
Usage
Example
FSEEK Seek File To A Given Position
Usage
Example
SPRINTF Formated String Output Function (C-Style)
Usage
Examples
PRINTF Formated Output Function (C-Style)
Usage
Format of the format string:
The flag characters:
The field width:
The precision:
The conversion specifier:
Example
FGETLINE Read a String from a File
Usage
Example
STR2NUM Convert a String to a Number
Usage
FSCANF Formatted File Input Function (C-Style)
Usage
FPRINTF Formated File Output Function (C-Style)
Usage
Examples
SAVE Save Variables To A File
Usage
Example
LOAD Load Variables From A File
Usage
Example
DISP Display a Variable or Expression
Usage
Example
GETLINE Get a Line of Input from User
Usage
String Functions
STRCMP String Compare Function
Usage
Example
Transforms/Decompositions
FFT (Inverse) Fast Fourier Transform Function
Usage
Function Internals
Example
LU LU Decomposition for Matrices
Usage
Example
EIG Eigendecomposition of a Matrix
Usage
Function Internals
Example
QR QR Decomposition of a Matrix
Usage
SVD Singular Value Decomposition of a Matrix
Usage
Function Internals
Examples
Operating System Functions
CD Change Working Directory Function
Usage
Example
LS/DIR List Files Function
Usage
Example
PWD Print Working Directory Function
Usage
Example
GETPATH Get Current Search Path
Usage
SETPATH Set Current Search Path
Usage
SYSTEM Call an External Program
Usage
Example
Optimization and Curve Fitting
INTERPLIN1 Linear 1-D Interpolation
Usage
Example
FITFUN Fit a Function
Usage
GAUSFIT Gaussian Curve Fit
Usage
Example
POLYFIT Fit Polynomial To Data
Usage
Function Internals
Example
POLYVAL Evaluate Polynomial Fit at Selected Points
Usage
Function Internals
Example
Samit K. Basu 2005-03-16