Skip to content

Bug: edge case for function squared and/or cubed but no operator "**" #35

@lfrommelt

Description

@lfrommelt

In the case that the functions squared and/or cubed are in the prior (and the structure allows for it) it is possible to sample e.g. $x^{3^2}=x^9$. During simplification in sample.__sample_tree_raw this will be simplified to $x^9$. If there is no "**" operator in the operator prior, tree_node._from_prefix_recursion will not recognize this concatenation of operators as legal (allthough probably unwanted) construct and raise:

Exception: ** has no defined type in any space

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