Skip to content

make the interface to integrate() like the (new consistent) interface to diff() #2787

@jasongrout

Description

@jasongrout

It would be nice if the following worked, if f was a function:

sage: integrate(f, x)

sage: # Double indefinite integral wrt x
sage: integrate(f, x, x)

sage: # limits and a double integral: x is the inner integral, y is the outer integral (note that this order is backwards from Mma...they think of nested integrals as int dx int dy function, so the first parameter is the outer integral in Mma.)
sage: integrate(f, (x, 0, 1), (y, 1, 2))
sage: integrate(f, (x, 0, y), (y, 1, 2))

sage: # Double integral, x is the inner integral, y is the outer integral
sage: integrate(f, x, y)

CC: @kcrisman @sagetrac-ktkohl

Component: calculus

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions