Main Content

sqrt

Square root of fi object

Description

This function computes the square root of a fi object using a bisection algorithm.

c = sqrt(a) returns the square root of fi object a. Intermediate quantities are calculated using the fimath associated with a. The numerictype object of c is determined automatically using an Internal Rule.

c = sqrt(a,T) returns the square root of fi object a with numerictype object T. Intermediate quantities are calculated using the fimath associated with a. See Data Type Propagation Rules.

c = sqrt(a,F) returns the square root of fi object a. Intermediate quantities are calculated using the fimath object F. The numerictype object of c is determined automatically using an Internal Rule.

When a is a built-in double or single data type, this syntax is equivalent to c = sqrt(a) and the fimath object F is ignored.

c = sqrt(a,T,F) returns the square root fi object a with numerictype object T. Intermediate quantities are also calculated using the fimath object F. See Data Type Propagation Rules.

Input Arguments

collapse all

Input fi array, specified as a scalar, vector, matrix, or multidimensional array.

sqrt does not support complex, negative-valued, or [Slope Bias] inputs.

Example: a = fi(pi,1,8,3)

Data Types: fi

numerictype of the output c, specified as a numerictype object.

Example: T = numerictype(1,32,30)

fimath used for calculations of intermediate quantities, specified as a fimath object.

Example: F = fimath('OverflowAction','Saturate','RoundingMethod','Convergent')

Algorithms

collapse all

Extended Capabilities

expand all

HDL Code Generation
Generate VHDL, Verilog and SystemVerilog code for FPGA and ASIC designs using HDL Coder™.

Version History

Introduced in R2006b

See Also

| |