CE-Programming / CEmu

Third-party TI-84 Plus CE / TI-83 Premium CE emulator, focused on developer features
https://ce-programming.github.io/CEmu/
Other
1.07k stars 76 forks source link

Graphing this equation produces the wrong result #414

Closed jon0x0 closed 2 years ago

jon0x0 commented 2 years ago

(Thanks for reporting an issue! Please make sure to fill out the blanks below.)

What's wrong, and with what software version?

Windows 10 1.3 git 87c3b43
ROM version: ti-84ce.rom from https://tiroms.weebly.com/uploads/1/1/0/5/110560031/ti-84ce.rom

Graphing an equation produces the wrong result. I was graphing the equation: Y1=6X^3+7X^2-63X+20 and comparing with a real TI-84 Plus CE side by side (helping my son with his homework). The graph produced on the emulator was incorrect and had an inverted sense (also compared with result from wolfram alpha). For example as X->-inf, Y should go to -inf but in the emulator goes to +inf.

What are the steps to reproduce this issue?

  1. Press Y= button
  2. Enter equation above
  3. Press graph
  4. Change limits as appropriate (press window button and change Xmin=-7,Xmax=7,Ymin=-200,Ymax=200, you can match wolfram alpha for example.

image

image

image

jacobly0 commented 2 years ago

You have pressed the (-) key instead of of the key, which is a negation instead of a subtraction, which means you had an implicit multiplication and it graphed 6X³+7X²×⁻63x+20 instead. This is exactly how it behaves on hardware, so nothing to do with CEmu. Edit: Also, if you are using a keyboard with the default layout, then ~ is negation and - is subtraction.