ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 29 Mar 2015 05:02:01 -0500Sage fails to evaluate this expression.http://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 04:12:06 -0500http://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>
http://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 05:02:01 -0500http://ask.sagemath.org/question/26372/sage-fails-to-evaluate-this-expression/?answer=26373#post-id-26373