Skip to content

Implement extracting symbolic coefficient of rational exponent #19996

Closed
@dkrenn

Description

@dkrenn
sage: (x^(1/2)).coefficient(x, 1/3)
sqrt(x)

It seems that 1/3 gets 0 (floor division, whyever).

EDIT: because the function takes an integer:

        INPUT:

        - ``s`` - expression

        - ``n`` - integer, default 1

so it's rather an enhancement.

Reported as pynac/pynac#216

Depends on #23820

Component: symbolics

Author: Ralf Stephan

Branch/Commit: 6d8d994

Reviewer: Travis Scrimshaw

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions