Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find 0's not working properly #12

Open
CristianoYL opened this issue Apr 13, 2018 · 1 comment
Open

find 0's not working properly #12

CristianoYL opened this issue Apr 13, 2018 · 1 comment

Comments

@CristianoYL
Copy link

Hi,
I recently found this awesome API and had some fun with it. However, I had a bit of trouble in using the /zeroes endpoint. Here are some of the failing use cases:

request: https://newton.now.sh/zeroes/x+30
response:

{
    "operation": "zeroes",
    "expression": "x+30",
    "result": [
        3
    ]
}

request: https://newton.now.sh/zeroes/x+3
response:

{
    "operation": "zeroes",
    "expression": "x+3",
    "result": [
        null
    ]
}

request: https://newton.now.sh/zeroes/x^2
response:

{
    "operation": "zeroes",
    "expression": "x^2",
    "result": [
        null
    ]
}

request: https://newton.now.sh/zeroes/x^2-2x+1
response:

{
    "operation": "zeroes",
    "expression": "x^2-2x+1",
    "result": [
        null
    ]
}

request: https://newton.now.sh/zeroes/x^2-2
response:

{
    "operation": "zeroes",
    "expression": "x^2-2",
    "result": [
        -2,
        2
    ]
}
@aunyks
Copy link
Owner

aunyks commented May 24, 2021

I acknowledge this. I just haven't made time to look into it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants