[GH-ISSUE #248] [ App Calculs ] Angle mal positionné (résultats complémentaires) #98

Closed
opened 2026-05-06 13:15:24 +02:00 by BreizhHardware · 2 comments

Originally created by @fmOOmf on GitHub (Jun 3, 2022).
Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/248

Bonjour à toute l'équipe
Avec les angles en degrés : taper cos(280).
Dans les résultats complémentaires, l'angle est positionné sur 80° au lieu de 280°.

Copie d'écran sur le simulateur :
image
image


When angles are in degree, in complimentary results accessible after computing cos(280), 280° is located at 80°.
Screenshots hereabove.

Originally created by @fmOOmf on GitHub (Jun 3, 2022). Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/248 Bonjour à toute l'équipe Avec les angles en degrés : taper cos(280). Dans les résultats complémentaires, l'angle est positionné sur 80° au lieu de 280°. Copie d'écran sur le simulateur : ![image](https://user-images.githubusercontent.com/98671961/171806222-a335b0ac-abc6-4e12-8435-02792ca0e47c.png) ![image](https://user-images.githubusercontent.com/98671961/171806284-100b5ba6-6e1b-4afa-9881-cb0a40f00c41.png) --- When angles are in degree, in complimentary results accessible after computing cos(280), 280° is located at 80°. Screenshots hereabove.
BreizhHardware 2026-05-06 13:15:24 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@lolocomotive commented on GitHub (Jun 16, 2022):

This happens for any angle between 270 and 360° (270 and 360 not included)

<!-- gh-comment-id:1157590996 --> @lolocomotive commented on GitHub (Jun 16, 2022): This happens for any angle between 270 and 360° (270 and 360 not included)
Author
Owner

@lolocomotive commented on GitHub (Jun 16, 2022):

Seems to work when the result is exact (for example cos(300°)=0.5 , cos(330°) = \frac{\sqrt{3}}{2})
Maybe due to apps/calculation/additional_outputs/trigonometry_list_controller.cpp:66

  float angle = Shared::PoincareHelpers::ApproximateToScalar<float>(m_calculationStore.calculationAtIndex(0)->approximateOutput(context, Calculation::NumberOfSignificantDigits::Maximal), context);
<!-- gh-comment-id:1157755711 --> @lolocomotive commented on GitHub (Jun 16, 2022): Seems to work when the result is exact (for example $cos(300°)=0.5$ , $cos(330°) = \frac{\sqrt{3}}{2})$ Maybe due to apps/calculation/additional_outputs/trigonometry_list_controller.cpp:66 ``` cpp float angle = Shared::PoincareHelpers::ApproximateToScalar<float>(m_calculationStore.calculationAtIndex(0)->approximateOutput(context, Calculation::NumberOfSignificantDigits::Maximal), context); ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Upsilon#98
No description provided.