Opened 12 years ago

Last modified 11 years ago

#8943 closed enhancement

RuntimeError with series — at Version 1

Reported by: casamayou Owned by: burcin
Priority: minor Milestone: sage-4.7.1
Component: calculus Keywords: series, taylor
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by casamayou)

The function *series* can not give the power series expansion of f(x)=(1+arctan(x))(1/x) , while *taylor* succeeds. Note that the function f can be continuously extended at 0.

sage: taylor((1+arctan(x))**(1/x), x, 0, 3)
1/16*x^3*e + 1/8*x^2*e - 1/2*x*e + e
sage: ((1+arctan(x))**(1/x)).series(x==0, 3)
RuntimeError: power::eval(): division by zero

Subsidiary question: why the functions *taylor* and *series* perform similar tasks, but differently?

Change History (1)

comment:1 Changed 12 years ago by casamayou

  • Description modified (diff)
Note: See TracTickets for help on using tickets.