microsoft / calculator

Windows Calculator: A simple yet powerful calculator that ships with Windows
MIT License
29.66k stars 5.37k forks source link

Graphing Calculator falsely shows "This function is too complex to graph" #1295

Open ghost opened 4 years ago

ghost commented 4 years ago

Describe the Bug:

The Graphing Calculator sometimes falsely shows the error stating, "This function is too complex to graph" even when it is capable of plotting it.

Steps to Reproduce:

  1. Open Calculator. Switch to Graphing mode.
  2. Type first expression as 'sin (x)' and press Enter.
  3. Type second expression as 'tan (x)' and press Enter again.

You will see an error stating that the function is too complex to graph.

Too Complex

  1. Close all running instances of the Calculator, and then open it again.
  2. Type first expression as 'tan (x)' and press Enter.

This time the graphing calculator is able to plot the function. The same thing happens every time when we try to plot the functions given below:

f(x) = log(sin(x) + cos(x)) g(x) = cot(x) h(x) = csc (x) p(x) = sec (x)

Expected Behaviour:

The Calculator should readily plot these functions.

Device and Application Info:

OS Build: 10.0.19041.264 Architecture: x64 Application Version: 10.2005.23.0 Region: India (EN-US) Dev Version Installed: No

Requested Assisgnment:

I'm just reporting this problem. I don't want to fix it.

MicrosoftIssueBot commented 4 years ago

This is your friendly Microsoft Issue Bot. I've seen this issue come in and have gone to tell a human about it.

grochocki commented 4 years ago

I am not able to reproduce this for tan(x), but I can reproduce for these:

f(x) = log(sin(x) + cos(x)) g(x) = cot(x) h(x) = csc (x) p(x) = sec (x)