Calculator With Working Queue and Problem Naming (500 Cycles Special)
BobTheTomatoPie (1061)

This is my first project that isn't a game!

I hope you guys enjoy it. I spent a long time figuring out how to get the working Queue and everything. It took a while. Updates will come and I will add more features such as more complex problems.

It is error-proof

Feel free to try and break it. You won't. I spent a lot of time making sure there are no errors.

Updates Will Come

As I said before I will add updates so you can enter more complex problems with more variables and just be able to find the answer to anything.

Thanks to eekboi on the discord

Eekboi taught me about queue's and helped me incorporate them into a reply project.

I will not be leaving Repl.it

I was thinking about leaving Repl.it because it does not have every module but I have decided to stay.

Enjoy!

Upvote if you enjoyed
By BobTheTomatoPie

You are viewing a single comment. View All
Bookie0 (3917)

Aha I found an error!

BobTheTomatoPie (1061)

Darn it dont divide by zero
@Bookie0

firefish (509)

@Bookie0 You divided by zero... no wonder it won't work

Bookie0 (3917)

Yea, I know, I was testing to see if it would it would give me an error message, but I was just pointing out that it’s still a little crack in the system... @johnstev111

firefish (509)

@Bookie0 All calculators throw errors upon dividing by zero

Bookie0 (3917)

Yea I know, but maybe the creator could add something to not let people try and do that... @johnstev111

BobTheTomatoPie (1061)

I made it so if you divide by zero it equals zero now try it again @Bookie0

firefish (509)

@Bookie0 Or do anything else undefined... i.e. 0^0

BobTheTomatoPie (1061)

You have to reload the page first @Bookie0

Bookie0 (3917)

Hum i did , several times, yet it still gives the error @BobTheTomatoPie

firefish (509)

@BobTheTomatoPie Just make a popup message any time someone tries to do x/0 or 0^0

BobTheTomatoPie (1061)

alright sounds good ill add it @johnstev111

Bookie0 (3917)

0 to the power of 0 is 1.
Anything to the power of 0 = 1 @johnstev111

BobTheTomatoPie (1061)

Thanks ill add that didnt realize that symbol was there @johnstev111

firefish (509)

@Bookie0 Wait... I thought 0^0 was special

firefish (509)

@BobTheTomatoPie According to Bookie0 it's 1 because x^0=1... I thought 0^0 was a special case and was undefined

BobTheTomatoPie (1061)

Oh lemme check up on that, I think i might have added something to prevent error that made the answer a 1 @johnstev111

BobTheTomatoPie (1061)

Oh okay I was just wrong with the math i guess @Bookie0

firefish (509)

@BobTheTomatoPie ** and ^ do the same thing, but some people might not know what the former is so good addition

BobTheTomatoPie (1061)

You guys can divide by zero now @johnstev111

firefish (509)

@BobTheTomatoPie It's meant to have like a message saying "oh you can't do that" or something and then carry on as if nothing happened because x/0 is undefined

BobTheTomatoPie (1061)

it says undefined for the answer @johnstev111

Bookie0 (3917)

Idk I typed calculator on google, and it gave me one. But x ^ 0 where x isn’t 0 (ex 7^0 ) = always 1 @johnstev111

firefish (509)

@Bookie0 I know but 0^0 is undefined

Bookie0 (3917)

Idk maybe google calculator is [email protected]

BobTheTomatoPie (1061)

its apparently one on google calculator @johnstev111

firefish (509)

@Bookie0 x^0=1 except for when x=0 in which case it's undefined

firefish (509)

@BobTheTomatoPie You can't do square roots either

Maybe ignore the last line