Open
Description
The following code evaluated in Sage 9.2 leads to a segmentation fault
sin(4*arctan(1/(sqrt(3) + 2))-x).taylor(x, 0, 1)
The error message is
;;;
;;; Detected access to protected memory, also known as 'bus or segmentation fault'.
;;; Jumping to the outermost toplevel prompt
;;;
Changing the constant slightly gives the desired result, e.g.
sin(4*arctan(1/(sqrt(3) + 1))-x).taylor(x, 0, 1)
evaluates to
-x*cos(4*arctan(1/2*sqrt(3) - 1/2)) + sin(4*arctan(1/2*sqrt(3) - 1/2))
Upstream report:
Upstream: Reported upstream. No feedback yet.
Component: calculus
Keywords: maxima, taylor series
Issue created by migration from https://trac.sagemath.org/ticket/31401