Skip to content

make bessel_J symbolic #4102

Closed
Closed
@jicama

Description

@jicama
mannequin

The motivation for this is

sage: plot(bessel_J(1, x), (x, 1, 10))
Traceback (most recent call last):
...
TypeError: Unable to convert x (='1-1/8*x^2+1/192*x^4-1/9216*x^6+1/737280*x^8-1/88473600*x^10+1/14863564800*x^12-1/3329438515200*x^14+1/958878292377600*x^16+O(x^17)') to real number.

The problem is that special functions, or at least bessel_J, can't currently be partially evaluated--that is, called with a SymbolicExpression as an argument. The model of good behavior is polylog, for which the above method produces a perfectly nice plot

sage: plot(polylog(1,x),(x,.1,.9)) #makes a fine plot

See discussion at http://groups.google.com/group/sage-support/browse_thread/thread/1b985b080ba2369e/7dee9eed953857f5#7dee9eed953857f5


Release manager:

Apply:

Depends on #9880

CC: @jasongrout @kcrisman @benjaminfjones @sagetrac-dsm @burcin @eviatarbach

Component: calculus

Keywords: sd48

Author: Benjamin Jones, Eviatar Bach, Volker Braun

Reviewer: Karl-Dieter Crisman, Burcin Erocal

Merged: sage-5.11.rc0

Issue created by migration from https://trac.sagemath.org/ticket/4102

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions