-
Notifications
You must be signed in to change notification settings - Fork 1
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
PEMDAS issues #6
Comments
I've tried with adding |
Hm, this is probably an issue with the parser. |
No problem. Good things take time. :) But I'd be happy if I didn't have to put in all the |
Oh don't worry, that'll only be temorary. |
That'd be great. Take your time though. No hurry from my side. |
Hey, I just wanted to let you know that I've started to work on it. |
I believe I got it working! |
It's pushed! |
I just realized I forgot to actually explain what I did. |
I actually feel pretty confident about this. All of the calculations I've tried have worked. |
WOW. Thanks for implementing it that fast. With my initial checks it seems to be working fine. I think it's ready to be included in my config. I'll close it if I find no more issues. |
I think I found some issues with exponents:
Tested on |
I'll have to look into the other ones though. |
That is my bad though, I forgot to document that |
I fixed the other two. |
Well, I have been taught in school that having an exponent of 1/2(=0.5) is like having a sqroot. I've run this through multiple online calculators and they all seem to output 3. (1) (2) But this is in a way my fault too. 1/2 returns decimal, so it should not work anyway until decimals are implemented. So I wouldn't be worried about it too much now. But a message would be nice when decimals/fractions like this occur. |
Yeah, thanks. Tested with some basic inputs and seems to be working fine now. |
I think I got another issue:
Answer should be 6 and 8 |
Yeah, I can already see why. The parser was not built with nested parenthesis in mind. Sorry for the late reply, I'm away from PC. Spending some time with the family right now. |
No problem. Take your time. |
First of all thanks for implementing PEMDAS. 🏆 It was great to see you implement it that fast.
I did some testing:
All of these are wrong. Am I doing anything wrong?
The text was updated successfully, but these errors were encountered: