Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config/Keyword to make sum(s) use degrees over radians. #225

Open
OvercastWarmth opened this issue Jul 31, 2023 · 2 comments
Open

Config/Keyword to make sum(s) use degrees over radians. #225

OvercastWarmth opened this issue Jul 31, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@OvercastWarmth
Copy link

We use fend in math class often, but now we're having issues with it preferring radians over degrees, is it possible that there could be a way to configure this, either:

  1. A keyword for an individual sum that will make fend prefer degrees over radians, like degree sin^-1 (1.9/2.4)
  2. A config option to make fend prefer degrees globally.
@printfn
Copy link
Owner

printfn commented Aug 1, 2023

Thanks for the suggestion! Making this behaviour configurable would definitely be good I think.

You might know this already and it’s probably not super helpful anyway, but in addition to the standard sin^-1 (1.9/2.4) to degree you could also define a function like this as a workaround:

> f = x: x to degree
\x.(x as degree)
> f (sin^-1 (1.9/2.4))
approx. 52.3415379937 degrees

@Markos-Th09
Copy link
Contributor

would this also apply to sin(90) meaning 90 degrees instead of 90 radians?

@printfn printfn added the enhancement New feature or request label Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants