ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 29 Mar 2015 12:02:01 +0200Sage fails to evaluate this expression.https://ask.sagemath.org/question/26372/sage-fails-to-evaluate-this-expression/Sage doesn't seem to compute correctly `8*sin(pi/9)^3 - 6*sin(pi/9) + 3^(1/2)` which is plain zero.Sun, 29 Mar 2015 11:12:06 +0200https://ask.sagemath.org/question/26372/sage-fails-to-evaluate-this-expression/Answer by eric_g for <p>Sage doesn't seem to compute correctly <code>8*sin(pi/9)^3 - 6*sin(pi/9) + 3^(1/2)</code> which is plain zero.</p>
https://ask.sagemath.org/question/26372/sage-fails-to-evaluate-this-expression/?answer=26373#post-id-26373Sage can compute it, but you must help it with reduce_trig():
a = 8*sin(pi/9)^3 - 6*sin(pi/9) + 3^(1/2)
a.reduce_trig()
0
Sun, 29 Mar 2015 12:02:01 +0200https://ask.sagemath.org/question/26372/sage-fails-to-evaluate-this-expression/?answer=26373#post-id-26373