Skip to content

Segmentation fault when calculating the taylor series of a specific function #31401

Open
@frcl

Description

@frcl
mannequin

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions