Skip to content

Commit 5cd11f1

Browse files
committed
Implement conversion of log(2) to Giac
1 parent e0cf1e4 commit 5cd11f1

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)