Skip to content

Get Maxima to easily accept flag values #10955

@kcrisman

Description

@kcrisman

Maxima relatively recently decided that 1/sqrt(x) is not sqrt(1/x), for good reasons (1/sqrt(-1)=-i but sqrt(1/-1)=i in usual discussion). So for the following integral, they note that it depends on how you input it:

sage: integrate(sqrt(1/x^2+x),x)
integrate(sqrt(x + 1/x^2), x)
sage: integrate(1/sqrt(x^2+x),x)
log(2*x + 2*sqrt(x^2 + x) + 1)

Fine. Then they suggest using the flag radexpand:all to make the first one behave. But I can't figure out how to get it to evaluate.

sage: sage.calculus.calculus.maxima('radexpand:all')
all
sage: integrate(sqrt(1/x^2+x),x)
integrate(sqrt(x + 1/x^2), x)

Trying maxima.eval only changes that I get 'all' instead of all. We should make this work, since this is the calculus instance of Sage!

CC: @robert-marik @burcin @nbruin @jasongrout @wdjoyner

Component: calculus

Keywords: maxima, flag, radexpand

Author: Peter Bruin

Branch/Commit: b94b48a

Reviewer: Nils Bruin, Karl-Dieter Crisman

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions