Skip to content

Expansion short cut #131

@dlfivefifty

Description

@dlfivefifty

A common pattern to expand a function is:

P = Legendre()
x = axes(P,1)
f = P / P \ exp.(x)

But perhaps a shortcut would be useful so this is one line:

expand(Legendre(), exp)

That is, add the function:

function expand(P, f)
    x = axes(P,1)
    P / P \ f.(x)
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions