Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account

Please note that the recommended version of Scilab is 6.0.1. This page might be outdated.
However, this page did not exist in the previous stable version.

Scilab Help >> Elementary Functions

Elementary Functions

  • Bitwise operations
  • Complex
    • complexCreate a complex number.
    • conjComplex conjugate
    • imagimaginary part
    • imultmultiplication by i the imaginary unitary
    • isrealcheck if a variable has real or complex entries
    • realreal part
  • Discrete mathematics
    • factorfactor function
    • factorialThe factorial function
    • gcdGreatest Common Divisor
    • lcmleast common multiple
    • permsall permutations of vector components
    • primesprimes function
    • ratFloating point rational approximation
  • Elementary matrices
    • diagdiagonal including or extracting
    • eyeidentity matrix
    • ind2sublinear index to matrix subscript values
    • linspacelinearly spaced vector
    • logspacelogarithmically spaced vector
    • meshgridcreate matrices or 3-D arrays
    • ndgridarrays for multidimensional function evaluation on grid
    • onesmatrix made of ones
    • randRandom numbers
    • squarewavegenerates a square wave with period 2*%pi
    • sub2indmatrix subscript values to linear index
    • testmatrixgenerate special matrices, such as Hilbert, Franck
    • toeplitzToeplitz matrix
    • zerosmatrix made of zeros
  • Log - exp - power
    • expelement-wise exponential
    • expmsquare matrix exponential
    • lognatural logarithm
    • log10base 10 logarithm
    • log1pcomputes with accuracy the natural logarithm of its argument added by one
    • log2base 2 logarithm
    • logmsquare matrix logarithm
    • polarpolar form
    • sqrtsquare root
    • sqrtmmatrix square root
  • Floating point
    • ceilround up
    • cleancleans matrices (round to zero small entries)
    • doubleconversion from integer to double precision representation
    • fixround towards zero
    • floorround down
    • formatnumber printing and display format
    • frexpdissect floating-point numbers into base 2 exponent and mantissa
    • ieeeset floating point exception mode
    • intround towards zero
    • isinfcheck for infinite entries
    • isnancheck for "Not a Number" entries
    • nearfloatget previous or next floating-point number
    • nextpow2next higher power of 2.
    • number_propertiesdetermine floating-point parameters
    • roundround to nearest integer
  • Radix conversions
    • base2decconvert from base b to decimal
    • bin2decconvert from binary to decimal
    • dec2baseConvert decimal to base N number in string
    • dec2binconvert from decimal to binary
    • dec2hexconvert from decimal to hexadecimal
    • dec2octconvert from decimal to octal
    • hex2decconvert from hexadecimal to decimal
    • oct2decconvert from octal to decimal
  • Matrix manipulation
    • flipdimflip x block components along a given dimension
    • matrixreshape a vector or a matrix to a different size matrix
    • permutepermute the dimensions of an array
    • pertransTransposition with reference to the 2nd diagonal
    • repmatReplicate and tile an array
    • resize_matrixtrim or/and extend (and cast) a matrix or hypermatrix
    • squeezeremoves singleton dimensions of a hypermatrix
  • Matrix operations
    • absabsolute value, magnitude
    • crossvector cross product
    • cumprodcumulative product of array elements
    • cumsumcumulative sum of array elements
    • kronKronecker product (.*.)
    • maxmaximum
    • minminimum
    • normmatrix norm
    • prodproduct of array elements
    • signmmatrix signum function
    • sumsum of array elements
    • trillower triangular part of matrix
    • triuupper triangle
  • Search and sort
    • dsearchdistribute, locate and count elements of a matrix or hypermatrix in given categories
    • findfind indices of boolean vector or matrix true elements
    • gsortsorting by quick sort algorithm
    • lex_sortlexicographic matrix rows sorting
    • vectorfindfinds in a matrix rows or columns matching a vector
  • Set operations
    • intersectreturns the vector of common values of two vectors
    • memberscount (and locate) in an array each element or row or column of another array
    • setdiffreturns components of a vector which do not belong to another one
    • unionextract union components of a vector
    • uniqueextract unique components of a vector or matrices
  • Signal processing
    • bloc2expConversion of a block-diagram to its symbolic expression
    • bloc2ssblock-diagram to state-space conversion
    • pen2eapencil to E,A conversion
    • ssrandrandom system generator
    • sysconvsystem conversion
    • sysdiagCreate a block diagonal matrix from provided inputs or block diagonal system connection
    • trfmodpoles and zeros display
  • Symbolic
    • addfsymbolic addition
    • cmb_linsymbolic linear combination
    • ldivfleft symbolic division
    • mulfsymbolic multiplication
    • rdivfright symbolic division
    • solvesymbolic linear system solver
    • subfsymbolic subtraction
    • trianfmlsymbolic triangularization
    • trisolvesymbolic linear system solver
  • Trigonometry
    • acoselement wise cosine inverse (radians)
    • acosdelement wise cosine inverse, result in degree.
    • acoshhyperbolic cosine inverse
    • acoshmmatrix hyperbolic inverse cosine
    • acosmmatrix wise cosine inverse
    • acotcomputes the element-wise inverse cotangeant of the argument.
    • acotdcomputes the element-wise inverse cotangeant of the argument, result in degree.
    • acothelement wise hyperbolic cotangeant inverse.
    • acsccomputes the element-wise inverse cosecant of the argument.
    • acscdcomputes the element-wise inverse cosecant of the argument, results in degree.
    • acschcomputes the element-wise inverse hyperbolic cosecant of the argument.
    • aseccomputes the element-wise inverse secant of the argument.
    • asecdcomputes the element-wise inverse secant of the argument, results in degree.
    • asechcomputes the element-wise inverse hyperbolic secant of the argument.
    • asinsine inverse (radians)
    • asindsine inverse, results in degree
    • asinhhyperbolic sine inverse
    • asinhmmatrix hyperbolic inverse sine
    • asinmmatrix wise sine inverse
    • atan2-quadrant and 4-quadrant inverse tangent
    • atand2-quadrant and 4-quadrant element-wise inverse tangent, result in degree
    • atanhhyperbolic tangent inverse
    • atanhmmatrix hyperbolic tangent inverse
    • atanmsquare matrix tangent inverse
    • coscosine function
    • cosdelement-wise cosine function, argument in degree
    • coshhyperbolic cosine
    • coshmmatrix hyperbolic cosine
    • cosmmatrix cosine function
    • cotdelement-wise cotangent function, argument in degree
    • cotgcotangent
    • cothhyperbolic cotangent
    • cothmmatrix hyperbolic cotangent
    • cscсomputes the element-wise cosecant of the argument
    • cscdсomputes the element-wise cosecant of the argument given in degree
    • cschComputes the element-wise hyperbolic cosecant of the argument.
    • csgnreturns the sign of a vector of real of complex values
    • seccomputes the element-wise secant of the argument
    • secdcomputes the element-wise secant of the argument given in degree
    • sechcomputes the element-wise hyperbolic secant of the argument
    • sinsine function
    • sincsinc function
    • sindsine function, argument in degree.
    • sinhhyperbolic sine
    • sinhmmatrix hyperbolic sine
    • sinmmatrix sine function
    • tantangent
    • tandtangent, argument in degree.
    • tanhhyperbolic tangent
    • tanhmmatrix hyperbolic tangent
    • tanmmatrix tangent
  • andlogical AND of the elements of an array
  • &logical AND operator
  • catconcatenate several arrays
  • cell2matconverts a cell array into a matrix
  • cellstrconverts strings vector (or strings matrix) into a cell array of strings
  • iscolumncheck if a variable is a column
  • isemptycheck if a variable is an empty matrix or an empty list
  • isequalobjects comparison
  • ismatrixcheck if a variable is a matrix
  • isrowcheck if a variable is a row
  • isscalarcheck if a variable is a scalar.
  • issquarecheck if a variable is a square matrix
  • isvectorcheck if a variable is a vector
  • lstsizelist, tlist, mlist numbers of entries
  • pmodulopositive euclidian remainder modulo m
  • ndimsnumber of dimensions of an array
  • nthrootReal nth root of real numbers
  • num2cellconverts an array into a cell array
  • orlogical OR of the elements of an array
  • |logical OR operator
  • signsignum function
  • sizesize of objects
  • unwrapunwrap a Y(x) profile or a Z(x,y) surface. Unfold a Y(x) profile
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Apr 01 10:13:53 CEST 2015