Переименование функций возведения в степень в get_power
This commit is contained in:
parent
1075624d05
commit
039b26305a
8 changed files with 17 additions and 17 deletions
|
|
@ -95,7 +95,7 @@ extern inline int bgc_fp64_complex_are_close(const BGC_FP64_Complex* number1, co
|
|||
|
||||
// =============== Get Exponation =============== //
|
||||
|
||||
void bgc_fp32_complex_get_exponation(BGC_FP32_Complex* power, const BGC_FP32_Complex* base, const float real_exponent, const float imaginary_exponent)
|
||||
void bgc_fp32_complex_get_power(BGC_FP32_Complex* power, const BGC_FP32_Complex* base, const float real_exponent, const float imaginary_exponent)
|
||||
{
|
||||
const float square_modulus = bgc_fp32_complex_get_square_modulus(base);
|
||||
|
||||
|
|
@ -115,7 +115,7 @@ void bgc_fp32_complex_get_exponation(BGC_FP32_Complex* power, const BGC_FP32_Com
|
|||
power->imaginary = power_modulus * sinf(power_angle);
|
||||
}
|
||||
|
||||
void bgc_fp64_complex_get_exponation(BGC_FP64_Complex* power, const BGC_FP64_Complex* base, const double real_exponent, const double imaginary_exponent)
|
||||
void bgc_fp64_complex_get_power(BGC_FP64_Complex* power, const BGC_FP64_Complex* base, const double real_exponent, const double imaginary_exponent)
|
||||
{
|
||||
const double square_modulus = bgc_fp64_complex_get_square_modulus(base);
|
||||
|
||||
|
|
|
|||
|
|
@ -317,11 +317,11 @@ inline int bgc_fp64_complex_invert(BGC_FP64_Complex* number)
|
|||
return bgc_fp64_complex_get_inverse(number, number);
|
||||
}
|
||||
|
||||
// =============== Get Exponation =============== //
|
||||
// ================= Get Power ================== //
|
||||
|
||||
void bgc_fp32_complex_get_exponation(BGC_FP32_Complex* power, const BGC_FP32_Complex* base, const float real_exponent, const float imaginary_exponent);
|
||||
void bgc_fp32_complex_get_power(BGC_FP32_Complex* power, const BGC_FP32_Complex* base, const float real_exponent, const float imaginary_exponent);
|
||||
|
||||
void bgc_fp64_complex_get_exponation(BGC_FP64_Complex* power, const BGC_FP64_Complex* base, const double real_exponent, const double imaginary_exponent);
|
||||
void bgc_fp64_complex_get_power(BGC_FP64_Complex* power, const BGC_FP64_Complex* base, const double real_exponent, const double imaginary_exponent);
|
||||
|
||||
// ==================== Add ===================== //
|
||||
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ extern inline int bgc_fp64_quaternion_are_close(const BGC_FP64_Quaternion* quate
|
|||
|
||||
// =============== Get Exponation =============== //
|
||||
|
||||
int bgc_fp32_quaternion_get_exponation(BGC_FP32_Quaternion* power, const BGC_FP32_Quaternion* base, const float exponent)
|
||||
int bgc_fp32_quaternion_get_power(BGC_FP32_Quaternion* power, const BGC_FP32_Quaternion* base, const float exponent)
|
||||
{
|
||||
const float s0s0 = base->s0 * base->s0;
|
||||
const float x1x1 = base->x1 * base->x1;
|
||||
|
|
@ -161,7 +161,7 @@ int bgc_fp32_quaternion_get_exponation(BGC_FP32_Quaternion* power, const BGC_FP3
|
|||
return BGC_SUCCESS;
|
||||
}
|
||||
|
||||
int bgc_fp64_quaternion_get_exponation(BGC_FP64_Quaternion* power, const BGC_FP64_Quaternion* base, const double exponent)
|
||||
int bgc_fp64_quaternion_get_power(BGC_FP64_Quaternion* power, const BGC_FP64_Quaternion* base, const double exponent)
|
||||
{
|
||||
const double s0s0 = base->s0 * base->s0;
|
||||
const double x1x1 = base->x1 * base->x1;
|
||||
|
|
|
|||
|
|
@ -670,9 +670,9 @@ inline int bgc_fp64_quaternion_get_normalized(BGC_FP64_Quaternion* normalized, c
|
|||
|
||||
// =============== Get Exponation =============== //
|
||||
|
||||
int bgc_fp32_quaternion_get_exponation(BGC_FP32_Quaternion* power, const BGC_FP32_Quaternion* base, const float exponent);
|
||||
int bgc_fp32_quaternion_get_power(BGC_FP32_Quaternion* power, const BGC_FP32_Quaternion* base, const float exponent);
|
||||
|
||||