Skip to content

Conversation

@tompng
Copy link
Member

@tompng tompng commented Oct 30, 2025

BigMath methods are mostly module mehods, but exp and log were not (at least from v2.0.0).
There is no reason to exclude these two methods.

include BigMath
# These works
sin(3.14, 10)
cos(3.14, 10)
atan(1, 10)
# These were error
exp(1, 10)
log(2, 10)

I don't think include BigMath is a good idea, but it is used in bigdecimal's document and also in test codes.

@tompng tompng merged commit a6d0db1 into ruby:master Nov 5, 2025
81 checks passed
@tompng tompng deleted the exp_log_module_function branch November 5, 2025 06:32
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.

1 participant