Skip to content

Commit 0ab46d1

Browse files
author
Release Manager
committed
gh-39982: Implement conversion of log(2) to Giac As in the title. Tested locally and it works. I think the test won't be run on CI because optional feature. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. -------- as far as I can tell the test failures are unrelated, but I've no idea why they have to fail all at the same time. Maybe some download corruption? (sounds quite unlikely…?) #37066 URL: #39982 Reported by: user202729 Reviewer(s): Travis Scrimshaw
2 parents 4c7c421 + 5cd11f1 commit 0ab46d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sage/symbolic/constants.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,8 @@ class Log2(Constant):
883883
0.69314718055994530941723212145817656807
884884
sage: RealField(150)(2).log()
885885
0.69314718055994530941723212145817656807550013
886+
sage: giac(log2) # optional - giac
887+
ln(2)
886888
"""
887889
def __init__(self, name='log2'):
888890
"""
@@ -893,7 +895,7 @@ def __init__(self, name='log2'):
893895
"""
894896
conversions = dict(mathematica='Log[2]', kash='Log(2)',
895897
maple='log(2)', maxima='log(2)', gp='log(2)',
896-
pari='log(2)', octave='log(2)')
898+
pari='log(2)', octave='log(2)', giac='log(2)')
897899
Constant.__init__(self, name, conversions=conversions,
898900
latex=r'\log(2)', domain='positive')
899901

0 commit comments

Comments
 (0)