Building a programming language, now possible?

Mathmatical Sense and how Calculators use a lot more than just an answer

Not only is this possible, but I did it on the first day of GKC :skull:

5 Likes

wow
is there a guide here for it?

It’s just block code taking in some inputs from counters and does adding/subtracting/multiplying/dividing/exponents

2 Likes

That’s not a proof.

You can’t do it with counters (I think) if you’re going to put a whole expression.

Feel free to prove me wrong.

I mean, if there is a limit on the expression, then it probably is possible but that would require limiting the calculator a lot (expression size, individual number size, etc.)

2 Likes

What do you mean? You can do things with functions. They take an input and return an output. We put some sort of processor that queues up the operations and feeds it into each operation, in order. It’s just a chain, limited by storage.

2 Likes

I am just saying that if possible would be merely impossible due to how much a calculator wields in its code

But it is possible just Complicated if you want an FULL ON WORKING Calculator and it would be memory consuming a bit too

1 Like

What is the scale of the calculator you’re talking about?
My graphing calculator is 18% memory
My +,-,/,x,^ calculator is 3% memory (plus it’s very unoptimized and old)

2 Likes

I assume he means a fully functional calculator that you can enter expressions in and with PEMDAS functioning perfectly.

2 Likes

It’ll require properties to store the expression that the user entered, e.g. 30/6+10.

1 Like

Yeah like I said in post 47 It would be quite a lot of work to do it

1 Like

Or counter-properties. They’re just better in all ways than regular properties.

2 Likes

How would you store operators (such as + or /) in counter properties?

2 Likes

are we including equations that a person would put in that would make Error appear?

1 Like

I assume we’ll just detect beforehand if something causes an error and set the answer to ERROR or something, so the text displays ERROR.

1 Like

Use IDs for each operation. 1 would be +, 2 would be -, and so on. There would be 3 counters per operation: the 2 inputs and the operation ID.

2 Likes

That would create a limit on the size of the expression, also it would cause a lot more trouble for PEMDAS and parenthetical expressions. Either that, or it would take away from usable digits (if 1 is +, what would represent 1?). I know you’re a fan of counter-properties but I think that a calculator like this is only able to be created with text properties.

4 Likes

but what I have been worried about, about this is EVERY POSSIBLE equation that you would have to put in including equations above the level of college in definition there is an infinite amount of possible equations possible on a calculator

1 Like

it is very much possible just pretty hard

1 Like