Main Content

fixed.cordic.hyperbolic.domainOfConvergence

CORDIC hyperbolic domain of convergence

Since R2023b

Description

D = fixed.cordic.hyperbolic.domainOfConvergence(theta) returns the CORDIC hyperbolic domain of convergence for the numeric type of input theta using the maximum shift value.

The domain of convergence is a function of the numeric type of theta and the maximum CORDIC shift value N. The domain of convergence converges to around [-1.1182, +1.1182].

example

D = fixed.cordic.hyperbolic.domainOfConvergence(theta,N) also uses the maximum shift value N. For fixed-point, the maximum shift value is limited by the word length minus one.

example

[d1,d2] = fixed.cordic.hyperbolic.domainOfConvergence(___) returns the lower bound d1 = D(1) and upper bound d2 = D(2) of the domain of convergence.

example

Examples

collapse all

theta = fi(pi/4,1,16,14);
D = fixed.cordic.hyperbolic.domainOfConvergence(theta)
D = 
   -1.1181    1.1181

          DataTypeMode: Fixed-point: binary point scaling
            Signedness: Signed
            WordLength: 16
        FractionLength: 14
theta = fi(pi/4,1,16,14);
N = 8;
[d1,d2] = fixed.cordic.hyperbolic.domainOfConvergence(theta,N)
d1 = 
   -1.1141

          DataTypeMode: Fixed-point: binary point scaling
            Signedness: Signed
            WordLength: 16
        FractionLength: 14
d2 = 
    1.1141

          DataTypeMode: Fixed-point: binary point scaling
            Signedness: Signed
            WordLength: 16
        FractionLength: 14

Input Arguments

collapse all

Input angle in radians, specified as a scalar.

Data Types: single | double | fi

Maximum shift value in CORDIC iterations, specified as a scalar.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

Output Arguments

collapse all

CORDIC hyperbolic domain of convergence, returned as a 1-by-2 vector where D(1) is the lower bound and D(2) is the upper bound. The output type is the type of input theta.

Lower and upper bound of domain of convergence, returned as scalars. The output type is the type of input theta.

Version History

Introduced in R2023b