WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@DmitryVasilevsky
Copy link
Contributor

As discussed elsewhere,

there's only one way to specify argument for trig functions and we already use it. We provide PI() so it should be convenient. Having said that, degrees are taught in school, so the only reason we may consider doing something about it is to facilitate education somehow.
I probably mentioned this before, but "radians" are just numbers. They are ratios of two lengths. So, no matter the unit for the length, the ration is just a number.
As for the issue, I don't see much harm in mentioning that we are using radians. They are part of the International System of Units after all. Although as a "derived unit". Degrees don't have the honor. They are just "acceptable". (https://www.bipm.org/documents/20126/41483022/SI-Brochure-9.pdf, page 145)

Resolves #2773

@github-actions
Copy link

Change in memory usage detected by benchmark.

Memory Report for 1b10926

Test This Branch On Main Difference
compile core + standard lib 24212490 bytes 24211946 bytes 544 bytes

@DmitryVasilevsky DmitryVasilevsky added this pull request to the merge queue Jan 2, 2026
Merged via the queue into main with commit 8b4bab3 Jan 2, 2026
18 checks passed
@DmitryVasilevsky DmitryVasilevsky deleted the dmitryv/radians branch January 2, 2026 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Specify the angular units that Q# trig functions output, and expect as input

4 participants