www.κτῆμα.org/landau

Landau Calculator

This application performs basic arithmetic on small positive natural numbers using the abstract formulae derived by Landau in his Foundations of Analysis. It can use any arbitrary set of symbols as its "numbers" — you may select below "numbers" (the Arabic numbers); "words" ("one + two = three" and so forth); or "fruit" (pineapple + cantaloupe = tomato; this form is just as valid as any other in Landau's system and involves no conversion to numerals).

The calculator currently supports only succession (a ' sign after the number symbol), addition, and multiplication, but in performing these operations it will show you every step it is performing along the way. It does support parentheses and will use the standard order of operations. It supports numbers up to 100 in numbers mode, up to "twenty-five" in words mode, and the following symbols in fruit mode:
apple, pear, pineapple, tangerine, plum, peach, cantaloupe, banana, orange, tomato, cherry, raspberry, grapefruit, mango, cranberry, strawberry, apricot, grape, watermelon, boysenberry, kiwi, guava, pomegranate, eggplant, quince, greengage, nectarine, persimmon, durian, lime, crabapple, lemon.

Select a number set:
Arabic numerals
Words
Fruit
Enter an arithmetic expression:
Remember to use the correct symbols in your input! The Landau calculator will not understand "2+2" if you ask for your answer in fruit. However, it will understand "apple + cantaloupe" just fine. (It equals "banana").

Source Code

The source code (in Python) to the Landau calculator is available under the BSD License. The source is a package (landau.py) which can be used in a CGI application, as here, or in other applications.

Valid XHTML 1.0!Valid CSSAny Browser