microsoft / calculator

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

Calculation error of drawing module #2076

Open Puiching-Memory opened 1 year ago

Puiching-Memory commented 1 year ago

*I'm using a translator

1.Open drawing module 2.Enter ⁅(1+2𝑥)^(1/𝑥)⁆ in the expression 3.Hover over x=0 to display y=1

Expected behavior x=0,y=e^2 or lim(x->0) (1+2x)^(1/x) = e^2

Screenshots

b77b2850f76b9b2db4f33357e9bb25b7

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

MicrosoftIssueBot commented 1 year ago

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

AlPasDev commented 1 year ago

@puiching-memory The equation is undefined when x = 0.. As 1/0 is undefined.. also 1 + 2*0 = 1.. So 1 ^ 1/0 is an undefined equation.. or 1

Igor743646 commented 1 year ago

In this issue, it is also worth considering other functions, such as sin(x)/2sin(x). There is also undefined at point 0. It should probably be added to write undefined for undefined values, but not 1 or something else.

githraj commented 1 year ago

Issue Description:

Open the drawing module. Enter the expression "(1+2𝑥)^(1/𝑥)" in the editor. Hover over x=0 to display y=1. Expected Behavior: The expected outcome should be either:

x=0, y=e^2 or lim(x->0) (1+2𝑥)^(1/𝑥) = e^2 Environment Details:

OS Build: 10.0.22621.0 Architecture: x64 Application Version: 11.2307.4.0 Region: zh_CN Dev Version Installed: False