alexander-bauer / distru

Distributed search for Hyperboria, powered by Go
13 stars 3 forks source link

[calc] evaluations #74

Closed alexander-bauer closed 11 years ago

alexander-bauer commented 11 years ago

When a calculation is performed, but it is also paired with a boolean evaluation, Distru should indicate whether the evaluation is true or false. For example, 2 * 10 == 20 would result in true. Similarly, 2 * 10 == 4 * 5 should also evaluate properly. >, <, >=, and <= should also be implemented.

lukevers commented 11 years ago

I also want to add more basic functions, like !, square root, ^, et cetera. If anyone has more ideas, write them here.

lukevers commented 11 years ago

I'm just using random numbers as an example for each of these.

Absolute Value: abs -18 ... 18 Factorial: 5! ... 120 Square Root: sqrt 4 ... 2 Power: 4^3 ... 64