Skip to content

"10 plus 2 squared times 3 = 2,985,984 " ????? #29

@sokimm

Description

@sokimm

As I run the chatterbot with math logic and evaluate the following sentences:

“10 plus 2 squared times 3”
“10 plus (2 squared) times 3”

must have the same results with 22.

However, the previous answer is 2,985,984, and the latter one is 22.

I think it happens because of mathparse, especially to_postfix() (the precedence of ^ and others)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions