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

Add missing constants to SRFI-144 #780

Merged
merged 1 commit into from
Nov 7, 2021
Merged

Conversation

jpellegrini
Copy link
Contributor

The following constants were missing from Chibi's SRFI-144
implementation:

 fl-1/e
 fl-e-pi/4
 fl-1/log-2
 fl-log-3
 fl-log-pi
 fl-1/log-10
 fl-2pi
 fl-pi-squared
 fl-degree
 fl-gamma-1/2
 fl-gamma-1/3
 fl-gamma-2/3

@jpellegrini
Copy link
Contributor Author

Looks like in MinGW and MSVC we can't use gamma (although log and sqrt do work).
If you want I may change the PR to use the numerical values of the gamma-... constants

@ashinn
Copy link
Owner

ashinn commented Sep 29, 2021

Shouldn't it be tgamma or lgamma_r?

@jpellegrini
Copy link
Contributor Author

Oh the SRFI requires true gamma,not log-gamma. I'll fix it

The following constants were missing from Chibi's SRFI-144
implementation:

 fl-1/e
 fl-e-pi/4
 fl-1/log-2
 fl-log-3
 fl-log-pi
 fl-1/log-10
 fl-2pi
 fl-pi-squared
 fl-degree
 fl-gamma-1/2
 fl-gamma-1/3
 fl-gamma-2/3
@ashinn
Copy link
Owner

ashinn commented Sep 29, 2021

Thanks!

@ashinn ashinn merged commit 7be38e0 into ashinn:master Nov 7, 2021
@jpellegrini jpellegrini deleted the srfi-144-fix branch November 7, 2021 02:00
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.

2 participants