Scilab Website | Contribute with GitLab | Scilab Community | ATOMS toolboxes
Scilab Online Help
6.0.0 - English

Change language to:
Français - 日本語 - Português - Русский

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

Scilab Help >> Elementary Functions

Elementary Functions

  • Bitwise operations
    • bitand — bitwise logical AND between element-wise integers of 2 arrays
    • bitcmp — bitwise complement
    • bitget — bit at specified position
    • bitor — bitwise logical OR between element-wise integers of 2 arrays
    • bitset — set bit at specified position
    • bitxor — bitwise logical XOR between element-wise integers of 2 arrays
  • Complex
    • complex — Create a complex number.
    • conj — Complex conjugate
    • imag — imaginary part of complex numbers, polynomials, or rationals
    • imult — multiplication by i the imaginary unitary
    • isreal — check if a variable is stored as a complex matrix
    • real — real part of complex numbers, polynomials, or rationals
  • Discrete mathematics
    • factor — factor function
    • factorial — The factorial function
    • gcd — Greatest Common Divisor
    • lcm — least common multiple
    • perms — all permutations of vector components
    • primes — primes function
    • rat — Floating point rational approximation
  • Matrix generation
    • diag — diagonal including or extracting
    • empty — ([]) empty matrix
    • eye — identity matrix
    • linspace — generates linearly spaced numbers between 2 reached bounds
    • logspace — logarithmically spaced vector
    • meshgrid — create matrices or 3-D arrays
    • ndgrid — build matrices or N-D arrays by replicating some template vectors
    • ones — matrix made of ones
    • rand — Random numbers
    • repmat — Replicate and tile an array
    • squarewave — generates a square wave with period 2*%pi
    • testmatrix — generate special matrices, such as Hilbert, Franck
    • toeplitz — Toeplitz matrix
    • zeros — matrix made of zeros
  • Log - exp - power
    • exp — element-wise exponential
    • expm — square matrix exponential
    • log — natural logarithm
    • log10 — base 10 logarithm
    • log1p — computes with accuracy the natural logarithm of its argument added by one
    • log2 — base 2 logarithm
    • logm — square matrix logarithm
    • nthroot — Real nth root of real numbers
    • polar — polar form
    • power — (^,.^) power operation
    • sqrt — square root
    • sqrtm — matrix square root
  • Floating point
    • ceil — round up
    • clean — cleans matrices (round to zero small entries)
    • double — converts inttype integers or booleans into decimal encoding
    • fix — round towards zero
    • floor — round down
    • format — set the default output format of decimal numbers
    • frexp — dissect floating-point numbers into base 2 exponent and mantissa
    • ieee — set floating point exception mode
    • int — round towards zero
    • isinf — tests for infinite elements
    • isnan — check for "Not a Number" entries
    • nearfloat — get previous or next floating-point number
    • nextpow2 — next higher power of 2.
    • number_properties — determine floating-point parameters
    • round — round to nearest integer
  • Radix conversions
    • base2dec — convert from base b to decimal
    • bin2dec — convert from binary to decimal
    • dec2base — Convert decimal to base N number in string
    • dec2bin — convert from decimal to binary
    • dec2hex — convert from decimal to hexadecimal
    • dec2oct — convert from decimal to octal
    • hex2dec — convert from hexadecimal to decimal
    • oct2dec — convert from octal to decimal
  • Matrix - shaping
    • flipdim — reverses the order of (blocks of) rows, columns, pages.. of a matrix or hypermatrix
    • matrix — reshape a vector or a matrix to a different size matrix
    • permute — permutes the dimensions of an array
    • pertrans — Transposition with reference to the 2nd diagonal
    • resize_matrix — trim or/and extend (and cast) a matrix or hypermatrix
    • squeeze — removes singleton dimensions of a hypermatrix
  • Matrix operations
    • abs — absolute value, magnitude
    • and — logical AND between the elements of a boolean or numerical array
    • cross — vector cross product
    • cumprod — cumulative product of array elements
    • cumsum — cumulative sum of array elements
    • kron — Kronecker product (.*.)
    • max — maximum
    • min — minimum
    • norm — matrix norm
    • or — logical OR over the elements of a boolean or numerical array
    • prod — product of array elements
    • sign — signum function
    • signm — matrix signum function
    • sum — sum of array elements
    • tril — lower triangular part of matrix
    • triu — upper triangle
    • unwrap — unwrap a Y(x) profile or a Z(x,y) surface. Unfold a Y(x) profile
  • Search and sort
    • dsearch — distribute, locate and count elements of a matrix or hypermatrix in given categories
    • find — find indices of boolean vector or matrix true elements
    • gsort — sorting by quick sort algorithm
    • members — count (and locate) in an array each element or row or column of another array
    • vectorfind — finds in a matrix rows or columns matching a vector
  • Set operations
    • intersect — returns the vector of common values of two vectors
    • setdiff — returns components of a vector which do not belong to another one
    • union — extract union components of a vector
    • unique — remove all duplicate components of a vector or a matrix
  • Signal processing
    • bloc2ss — block-diagram to state-space conversion
    • pen2ea — pencil to E,A conversion
    • ssrand — random system generator
    • sysconv — system conversion
    • sysdiag — Create a block diagonal matrix from provided inputs or block diagonal system connection
    • trfmod — poles and zeros display
  • Trigonometry
    • acos — element wise cosine inverse (radians)
    • acosd — element wise cosine inverse, result in degree.
    • acosh — hyperbolic cosine inverse
    • acoshm — matrix hyperbolic inverse cosine
    • acosm — matrix wise cosine inverse
    • acot — computes the element-wise inverse cotangent of the argument.
    • acotd — computes the element-wise inverse cotangent of the argument, result in degree.
    • acoth — element wise hyperbolic cotangent inverse.
    • acsc — computes the element-wise inverse cosecant of the argument.
    • acscd — computes the element-wise inverse cosecant of the argument, results in degree.
    • acsch — computes the element-wise inverse hyperbolic cosecant of the argument.
    • asec — computes the element-wise inverse secant of the argument.
    • asecd — computes the element-wise inverse secant of the argument, results in degree.
    • asech — computes the element-wise inverse hyperbolic secant of the argument.
    • asin — sine inverse (radians)
    • asind — sine inverse, results in degree
    • asinh — hyperbolic sine inverse
    • asinhm — matrix hyperbolic inverse sine
    • asinm — matrix wise sine inverse
    • atan — 2-quadrant and 4-quadrant inverse tangent
    • atand — 2-quadrant and 4-quadrant element-wise inverse tangent, result in degree
    • atanh — hyperbolic tangent inverse
    • atanhm — matrix hyperbolic tangent inverse
    • atanm — square matrix tangent inverse
    • cos — cosine function
    • cosd — element-wise cosine function, argument in degree
    • cosh — hyperbolic cosine
    • coshm — matrix hyperbolic cosine
    • cosm — matrix cosine function
    • cotd — element-wise cotangent function, argument in degree
    • cotg — cotangent
    • coth — hyperbolic cotangent
    • cothm — matrix hyperbolic cotangent
    • csc — сomputes the element-wise cosecant of the argument
    • cscd — сomputes the element-wise cosecant of the argument given in degree
    • csch — Computes the element-wise hyperbolic cosecant of the argument.
    • csgn — returns the sign of a vector of real of complex values
    • sec — computes the element-wise secant of the argument
    • secd — computes the element-wise secant of the argument given in degree
    • sech — computes the element-wise hyperbolic secant of the argument
    • sin — sine function
    • sinc — sinc function
    • sind — sine function, argument in degree.
    • sinh — hyperbolic sine
    • sinhm — matrix hyperbolic sine
    • sinm — matrix sine function
    • tan — tangent
    • tand — tangent, argument in degree.
    • tanh — hyperbolic tangent
    • tanhm — matrix hyperbolic tangent
    • tanm — matrix tangent
  • &, && — Binary AND between integers. Logical AND over/between booleans and numbers
  • cat — concatenate several arrays
  • ind2sub — linear index to matrix subscript values
  • iscolumn — check if a variable is a column
  • isempty — check if a variable is an empty matrix or an empty list
  • isequalbitwise — comparison of objects (NaN are equal)
  • ismatrix — checks if an object is a non-empty 1D or 2D matrix or array
  • isrow — check if a variable is a row
  • isscalar — check if a variable is a scalar.
  • issquare — check if a variable is a square matrix
  • isvector — check if a variable is a vector
  • pmodulo — positive euclidian remainder modulo m
  • ndims — number of dimensions of an array
  • |, || — Binary OR between integers. Logical OR over/between booleans and numbers
  • size — size of objects
  • sub2ind — matrix subscript values to linear index
Report an issue
<< Differential calculus, Integration Scilab Help Linear Algebra >>

Copyright (c) 2022-2026 (Dassault Systèmes S.E.)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 14 15:02:43 CET 2017