Переименование tangent pair в числа Котса, выделение комплексных чисел из двумерных векторов, добавление возведения в спебень для веросорв и чисел Котса
This commit is contained in:
parent
34ee460873
commit
74be89f1f8
17 changed files with 1233 additions and 646 deletions
|
|
@ -79,7 +79,7 @@ void list_work(const uint_fast32_t amount, structure_fp32_t* list)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
const unsigned int amount = 1000000;
|
const unsigned int amount = 1000000;
|
||||||
|
|
@ -121,3 +121,34 @@ int main()
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
int main() {
|
||||||
|
BgcComplexFP32 complex, exponent, result;
|
||||||
|
|
||||||
|
bgc_complex_set_values_fp32(0, 1, &complex);
|
||||||
|
|
||||||
|
bgc_complex_set_values_fp32(4, 0, &exponent);
|
||||||
|
|
||||||
|
bgc_complex_get_exponation_fp32(&complex, exponent.real, exponent.imaginary, &result);
|
||||||
|
|
||||||
|
printf("(%f, %f) ^ (%f, %f) = (%f, %f)\n", complex.real, complex.imaginary, exponent.real, exponent.imaginary, result.real, result.imaginary);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
const float exponent = 2.0f;
|
||||||
|
|
||||||
|
BgcVersorFP32 turn, result;
|
||||||
|
|
||||||
|
bgc_versor_set_turn_fp32(0, 0, 1, 120, BGC_ANGLE_UNIT_DEGREES, &turn);
|
||||||
|
|
||||||
|
bgc_versor_get_exponation_fp32(&turn, exponent, &result);
|
||||||
|
|
||||||
|
printf("(%f, %f, %f, %f) ^ %f = (%f, %f, %f, %f)\n", turn.s0, turn.x1, turn.x2, turn.x3, exponent, result.s0, result.x1, result.x2, result.x3);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,14 @@
|
||||||
</Unit>
|
</Unit>
|
||||||
<Unit filename="angle.h" />
|
<Unit filename="angle.h" />
|
||||||
<Unit filename="basic-geometry.h" />
|
<Unit filename="basic-geometry.h" />
|
||||||
|
<Unit filename="complex.c">
|
||||||
|
<Option compilerVar="CC" />
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="complex.h" />
|
||||||
|
<Unit filename="cotes-number.c">
|
||||||
|
<Option compilerVar="CC" />
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="cotes-number.h" />
|
||||||
<Unit filename="matrix2x2.c">
|
<Unit filename="matrix2x2.c">
|
||||||
<Option compilerVar="CC" />
|
<Option compilerVar="CC" />
|
||||||
</Unit>
|
</Unit>
|
||||||
|
|
@ -76,10 +84,6 @@
|
||||||
<Option compilerVar="CC" />
|
<Option compilerVar="CC" />
|
||||||
</Unit>
|
</Unit>
|
||||||
<Unit filename="rotation3.h" />
|
<Unit filename="rotation3.h" />
|
||||||
<Unit filename="tangent-pair.c">
|
|
||||||
<Option compilerVar="CC" />
|
|
||||||
</Unit>
|
|
||||||
<Unit filename="tangent-pair.h" />
|
|
||||||
<Unit filename="utilities.c">
|
<Unit filename="utilities.c">
|
||||||
<Option compilerVar="CC" />
|
<Option compilerVar="CC" />
|
||||||
</Unit>
|
</Unit>
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,25 @@
|
||||||
#ifndef _BGC_H_
|
#ifndef _BGC_H_
|
||||||