Commit a07b23b7 authored by Over_score's avatar Over_score

Merge branch 'Fix-arcosh-issue-2' into 'master'

Fix arcosh issue 2

See merge request !504
parents 871ee9e7 84ea48ea
......@@ -2171,7 +2171,7 @@ void closeNim(void) {
real34ToReal(REGISTER_REAL34_DATA(REGISTER_X), &magnitude);
real34ToReal(REGISTER_IMAG34_DATA(REGISTER_X), &theta);
convertAngle39FromTo(&theta, currentAngularMode, AM_RADIAN);
if(real39CompareLessThan(&magnitude, const_0)) {
if(realCompareLessThan(&magnitude, const_0)) {
realSetPositiveSign(&magnitude);
realAdd(&theta, const_pi, &theta, &ctxtReal39);
realDivideRemainder(&theta, const_2pi, &theta, &ctxtReal39);
......@@ -2201,7 +2201,7 @@ void closeNim(void) {
real16ToReal(REGISTER_REAL16_DATA(REGISTER_X), &magnitude);
real16ToReal(REGISTER_IMAG16_DATA(REGISTER_X), &theta);
convertAngle39FromTo(&theta, currentAngularMode, AM_RADIAN);
if(real39CompareLessThan(&magnitude, const_0)) {
if(realCompareLessThan(&magnitude, const_0)) {
realSetPositiveSign(&magnitude);
realAdd(&theta, const_pi, &theta, &ctxtReal39);
realDivideRemainder(&theta, const_2pi, &theta, &ctxtReal39);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment