📄 iqmathcpp.h
字号:
}
inline iq21 IQ21atan2(iq21 y, iq21 x)
{
iq21 temp;
temp.val = _IQ21atan2(y.val, x.val);
return temp;
}
inline iq20 IQ20atan2(iq20 y, iq20 x)
{
iq20 temp;
temp.val = _IQ20atan2(y.val, x.val);
return temp;
}
inline iq19 IQ19atan2(iq19 y, iq19 x)
{
iq19 temp;
temp.val = _IQ19atan2(y.val, x.val);
return temp;
}
inline iq18 IQ18atan2(iq18 y, iq18 x)
{
iq18 temp;
temp.val = _IQ18atan2(y.val, x.val);
return temp;
}
inline iq17 IQ17atan2(iq17 y, iq17 x)
{
iq17 temp;
temp.val = _IQ17atan2(y.val, x.val);
return temp;
}
inline iq16 IQ16atan2(iq16 y, iq16 x)
{
iq16 temp;
temp.val = _IQ16atan2(y.val, x.val);
return temp;
}
inline iq15 IQ15atan2(iq15 y, iq15 x)
{
iq15 temp;
temp.val = _IQ15atan2(y.val, x.val);
return temp;
}
//---------------------------------------------------------------------------
// Functions: IQatan2PU(A,B), IQNatan2PU(A,B)
//---------------------------------------------------------------------------
inline iq IQatan2PU(iq y, iq x)
{
iq temp;
temp.val = _IQatan2PU(y.val, x.val);
return temp;
}
inline iq30 IQ30atan2PU(iq30 y, iq30 x)
{
iq30 temp;
temp.val = _IQ30atan2PU(y.val, x.val);
return temp;
}
inline iq29 IQ29atan2PU(iq29 y, iq29 x)
{
iq29 temp;
temp.val = _IQ29atan2PU(y.val, x.val);
return temp;
}
inline iq28 IQ28atan2PU(iq28 y, iq28 x)
{
iq28 temp;
temp.val = _IQ28atan2PU(y.val, x.val);
return temp;
}
inline iq27 IQ27atan2PU(iq27 y, iq27 x)
{
iq27 temp;
temp.val = _IQ27atan2PU(y.val, x.val);
return temp;
}
inline iq26 IQ26atan2PU(iq26 y, iq26 x)
{
iq26 temp;
temp.val = _IQ26atan2PU(y.val, x.val);
return temp;
}
inline iq25 IQ25atan2PU(iq25 y, iq25 x)
{
iq25 temp;
temp.val = _IQ25atan2PU(y.val, x.val);
return temp;
}
inline iq24 IQ24atan2PU(iq24 y, iq24 x)
{
iq24 temp;
temp.val = _IQ24atan2PU(y.val, x.val);
return temp;
}
inline iq23 IQ23atan2PU(iq23 y, iq23 x)
{
iq23 temp;
temp.val = _IQ23atan2PU(y.val, x.val);
return temp;
}
inline iq22 IQ22atan2PU(iq22 y, iq22 x)
{
iq22 temp;
temp.val = _IQ22atan2PU(y.val, x.val);
return temp;
}
inline iq21 IQ21atan2PU(iq21 y, iq21 x)
{
iq21 temp;
temp.val = _IQ21atan2PU(y.val, x.val);
return temp;
}
inline iq20 IQ20atan2PU(iq20 y, iq20 x)
{
iq20 temp;
temp.val = _IQ20atan2PU(y.val, x.val);
return temp;
}
inline iq19 IQ19atan2PU(iq19 y, iq19 x)
{
iq19 temp;
temp.val = _IQ19atan2PU(y.val, x.val);
return temp;
}
inline iq18 IQ18atan2PU(iq18 y, iq18 x)
{
iq18 temp;
temp.val = _IQ18atan2PU(y.val, x.val);
return temp;
}
inline iq17 IQ17atan2PU(iq17 y, iq17 x)
{
iq17 temp;
temp.val = _IQ17atan2PU(y.val, x.val);
return temp;
}
inline iq16 IQ16atan2PU(iq16 y, iq16 x)
{
iq16 temp;
temp.val = _IQ16atan2PU(y.val, x.val);
return temp;
}
inline iq15 IQ15atan2PU(iq15 y, iq15 x)
{
iq15 temp;
temp.val = _IQ15atan2PU(y.val, x.val);
return temp;
}
//---------------------------------------------------------------------------
// Functions: IQatan(A), IQNatan(A)
//---------------------------------------------------------------------------
#define IQatan(A) IQatan2(A,IQ(1.0))
#define IQ30atan(A) IQ30atan2(A,IQ30(1.0))
#define IQ29atan(A) IQ29atan2(A,IQ29(1.0))
#define IQ28atan(A) IQ28atan2(A,IQ28(1.0))
#define IQ27atan(A) IQ27atan2(A,IQ27(1.0))
#define IQ26atan(A) IQ26atan2(A,IQ26(1.0))
#define IQ25atan(A) IQ25atan2(A,IQ25(1.0))
#define IQ24atan(A) IQ24atan2(A,IQ24(1.0))
#define IQ23atan(A) IQ23atan2(A,IQ23(1.0))
#define IQ22atan(A) IQ22atan2(A,IQ22(1.0))
#define IQ21atan(A) IQ21atan2(A,IQ21(1.0))
#define IQ20atan(A) IQ20atan2(A,IQ20(1.0))
#define IQ19atan(A) IQ19atan2(A,IQ19(1.0))
#define IQ18atan(A) IQ18atan2(A,IQ18(1.0))
#define IQ17atan(A) IQ17atan2(A,IQ17(1.0))
#define IQ16atan(A) IQ16atan2(A,IQ16(1.0))
#define IQ15atan(A) IQ15atan2(A,IQ15(1.0))
//---------------------------------------------------------------------------
// Functions: IQsqrt(A), IQNsqrt(A)
//---------------------------------------------------------------------------
inline iq IQsqrt(iq x)
{
iq temp;
temp.val = _IQsqrt(x.val);
return temp;
}
inline iq30 IQ30sqrt(iq30 x)
{
iq30 temp;
temp.val = _IQ30sqrt(x.val);
return temp;
}
inline iq29 IQ29sqrt(iq29 x)
{
iq29 temp;
temp.val = _IQ29sqrt(x.val);
return temp;
}
inline iq28 IQ28sqrt(iq28 x)
{
iq28 temp;
temp.val = _IQ28sqrt(x.val);
return temp;
}
inline iq27 IQ27sqrt(iq27 x)
{
iq27 temp;
temp.val = _IQ27sqrt(x.val);
return temp;
}
inline iq26 IQ26sqrt(iq26 x)
{
iq26 temp;
temp.val = _IQ26sqrt(x.val);
return temp;
}
inline iq25 IQ25sqrt(iq25 x)
{
iq25 temp;
temp.val = _IQ25sqrt(x.val);
return temp;
}
inline iq24 IQ24sqrt(iq24 x)
{
iq24 temp;
temp.val = _IQ24sqrt(x.val);
return temp;
}
inline iq23 IQ23sqrt(iq23 x)
{
iq23 temp;
temp.val = _IQ23sqrt(x.val);
return temp;
}
inline iq22 IQ22sqrt(iq22 x)
{
iq22 temp;
temp.val = _IQ22sqrt(x.val);
return temp;
}
inline iq21 IQ21sqrt(iq21 x)
{
iq21 temp;
temp.val = _IQ21sqrt(x.val);
return temp;
}
inline iq20 IQ20sqrt(iq20 x)
{
iq20 temp;
temp.val = _IQ20sqrt(x.val);
return temp;
}
inline iq19 IQ19sqrt(iq19 x)
{
iq19 temp;
temp.val = _IQ19sqrt(x.val);
return temp;
}
inline iq18 IQ18sqrt(iq18 x)
{
iq18 temp;
temp.val = _IQ18sqrt(x.val);
return temp;
}
inline iq17 IQ17sqrt(iq17 x)
{
iq17 temp;
temp.val = _IQ17sqrt(x.val);
return temp;
}
inline iq16 IQ16sqrt(iq16 x)
{
iq16 temp;
temp.val = _IQ16sqrt(x.val);
return temp;
}
inline iq15 IQ15sqrt(iq15 x)
{
iq15 temp;
temp.val = _IQ15sqrt(x.val);
return temp;
}
//---------------------------------------------------------------------------
// Functions: IQisqrt(A), IQNisqrt(A)
//---------------------------------------------------------------------------
inline iq IQisqrt(iq x)
{
iq temp;
temp.val = _IQisqrt(x.val);
return temp;
}
inline iq30 IQ30isqrt(iq30 x)
{
iq30 temp;
temp.val = _IQ30isqrt(x.val);
return temp;
}
inline iq29 IQ29isqrt(iq29 x)
{
iq29 temp;
temp.val = _IQ29isqrt(x.val);
return temp;
}
inline iq28 IQ28isqrt(iq28 x)
{
iq28 temp;
temp.val = _IQ28isqrt(x.val);
return temp;
}
inline iq27 IQ27isqrt(iq27 x)
{
iq27 temp;
temp.val = _IQ27isqrt(x.val);
return temp;
}
inline iq26 IQ26isqrt(iq26 x)
{
iq26 temp;
temp.val = _IQ26isqrt(x.val);
return temp;
}
inline iq25 IQ25isqrt(iq25 x)
{
iq25 temp;
temp.val = _IQ25isqrt(x.val);
return temp;
}
inline iq24 IQ24isqrt(iq24 x)
{
iq24 temp;
temp.val = _IQ24isqrt(x.val);
return temp;
}
inline iq23 IQ23isqrt(iq23 x)
{
iq23 temp;
temp.val = _IQ23isqrt(x.val);
return temp;
}
inline iq22 IQ22isqrt(iq22 x)
{
iq22 temp;
temp.val = _IQ22isqrt(x.val);
return temp;
}
inline iq21 IQ21isqrt(iq21 x)
{
iq21 temp;
temp.val = _IQ21isqrt(x.val);
return temp;
}
inline iq20 IQ20isqrt(iq20 x)
{
iq20 temp;
temp.val = _IQ20isqrt(x.val);
return temp;
}
inline iq19 IQ19isqrt(iq19 x)
{
iq19 temp;
temp.val = _IQ19isqrt(x.val);
return temp;
}
inline iq18 IQ18isqrt(iq18 x)
{
iq18 temp;
temp.val = _IQ18isqrt(x.val);
return temp;
}
inline iq17 IQ17isqrt(iq17 x)
{
iq17 temp;
temp.val = _IQ17isqrt(x.val);
return temp;
}
inline iq16 IQ16isqrt(iq16 x)
{
iq16 temp;
temp.val = _IQ16isqrt(x.val);
return temp;
}
inline iq15 IQ15isqrt(iq15 x)
{
iq15 temp;
temp.val = _IQ15isqrt(x.val);
return temp;
}
//---------------------------------------------------------------------------
// Functions: IQmag(A,B), IQNmag(A,B)
//---------------------------------------------------------------------------
inline iq IQmag(iq y, iq x)
{
iq temp;
temp.val = _IQmag(y.val, x.val);
return temp;
}
inline iq30 IQ30mag(iq30 y, iq30 x)
{
iq30 temp;
temp.val = _IQ30mag(y.val, x.val);
return temp;
}
inline iq29 IQ29mag(iq29 y, iq29 x)
{
iq29 temp;
temp.val = _IQ29mag(y.val, x.val);
return temp;
}
inline iq28 IQ28mag(iq28 y, iq28 x)
{
iq28 temp;
temp.val = _IQ28mag(y.val, x.val);
return temp;
}
inline iq27 IQ27mag(iq27 y, iq27 x)
{
iq27 temp;
temp.val = _IQ27mag(y.val, x.val);
return temp;
}
inline iq26 IQ26mag(iq26 y, iq26 x)
{
iq26 temp;
temp.val = _IQ26mag(y.val, x.val);
return temp;
}
inline iq25 IQ25mag(iq25 y, iq25 x)
{
iq25 temp;
temp.val = _IQ25mag(y.val, x.val);
return temp;
}
inline iq24 IQ24mag(iq24 y, iq24 x)
{
iq24 temp;
temp.val = _IQ24mag(y.val, x.val);
return temp;
}
inline iq23 IQ23mag(iq23 y, iq23 x)
{
iq23 temp;
temp.val = _IQ23mag(y.val, x.val);
return temp;
}
inline iq22 IQ22mag(iq22 y, iq22 x)
{
iq22 temp;
temp.val = _IQ22mag(y.val, x.val);
return temp;
}
inline iq21 IQ21mag(iq21 y, iq21 x)
{
iq21 temp;
temp.val = _IQ21mag(y.val, x.val);
return temp;
}
inline iq20 IQ20mag(iq20 y, iq20 x)
{
iq20 temp;
temp.val = _IQ20mag(y.val, x.val);
return temp;
}
inline iq19 IQ19mag(iq19 y, iq19 x)
{
iq19 temp;
temp.val = _IQ19mag(y.val, x.val);
return temp;
}
inline iq18 IQ18mag(iq18 y, iq18 x)
{
iq18 temp;
temp.val = _IQ18mag(y.val, x.val);
return temp;
}
inline iq17 IQ17mag(iq17 y, iq17 x)
{
iq17 temp;
temp.val = _IQ17mag(y.val, x.val);
return temp;
}
inline iq16 IQ16mag(iq16 y, iq16 x)
{
iq16 temp;
temp.val = _IQ16mag(y.val, x.val);
return temp;
}
inline iq15 IQ15mag(iq15 y, iq15 x)
{
iq15 temp;
temp.val = _IQ15mag(y.val, x.val);
return temp;
}
//---------------------------------------------------------------------------
// Functions: IQabs(A), IQNabs(A)
//---------------------------------------------------------------------------
inline iq IQabs(iq y)
{
iq temp;
temp.val = labs(y.val);
return temp;
}
inline iq30 IQ30abs(iq30 y)
{
iq30 temp;
temp.val = labs(y.val);
return temp;
}
inline iq29 IQ29abs(iq29 y)
{
iq29 temp;
temp.val = labs(y.val);
return temp;
}
inline iq28 IQ28abs(iq28 y)
{
iq28 temp;
temp.val = labs(y.val);
return temp;
}
inline iq27 IQ27abs(iq27 y)
{
iq27 temp;
temp.val = labs(y.val);
return temp;
}
inline iq26 IQ26abs(iq26 y)
{
iq26 temp;
temp.val = labs(y.val);
return temp;
}
inline iq25 IQ25abs(iq25 y)
{
iq25 temp;
temp.val = labs(y.val);
return temp;
}
inline iq24 IQ24abs(iq24 y)
{
iq24 temp;
temp.val = labs(y.val);
return temp;
}
inline iq23 IQ23abs(iq23 y)
{
iq23 temp;
temp.val = labs(y.val);
return temp;
}
inline iq22 IQ22abs(iq22 y)
{
iq22 temp;
temp.val = labs(y.val);
return temp;
}
inline iq21 IQ21abs(iq21 y)
{
iq21 temp;
temp.val = labs(y.val);
return temp;
}
i
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -