Переименование функций возведения в степень в 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 =============== //
|
// =============== 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);
|
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);
|
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);
|
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);
|
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 ===================== //
|
// ==================== Add ===================== //
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ extern inline int bgc_fp64_quaternion_are_close(const BGC_FP64_Quaternion* quate
|
||||||
|
|
||||||
// =============== Get Exponation =============== //
|
// =============== Get Exponation =============== //
|
||||||
|
|
||||||