┌────────────────────────────────────────────────────────────┐
│ │
│ 1 │
│ ─── │
│ 2 2 ⎜ -e ⎟ │
│ In[1]: ───── + ────────────────────────────── + ⎜ ──── ⎟ │
│ 3 _______________________ ⎣ 4 ⎦ │
│ ╱ ┌ π ┐ 2 1 │
│ ╱ Sin │ ─── │ + ───── │
│ ╱ └ 2 ┘ 5 │
│ ╲╱ -2 │
│ │
│ Out[1]: 1.1986686986697146 │
│ │
├─────────────────────────────────────────────────────────┬──┘
Nota is a nice terminal calculator with rich notation
│ rendering. It is designed for your quick calculations │
and therefore provides you with a tiny and beautiful
│ language so you can express your ideas easily. Keep in │
mind that Nota is all about beauty and ASCII art.
└ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┘
┌────────────────────────────────────────────────────────┐
│ │
│ In[2]: ⟨Earth’s Radius⟩ ≡ 6371 │
│ │
│ Out[2]: 6371.0 │
│ │
│ │
│ 4 3 │
│ In[3]: ⟨Earth’s Volume⟩ ≡ ─── × π × Earth’s Radius │
│ 3 │
│ │
│ Out[3]: 1.0832069168457535e12 │
│ │
└──────────────┬─────────────────────────────────────────┤
Nota’s Language offers beautiful ideas
│ in its design; such as having variables │
that accept spaces and apostrophe
└ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┘
┌──────────────────────────────────────────────────────────────────┐
│ Nota is currently supported on the UNIX systems. It works great │
│ under the macOS and Linux systems. It can also be installed │
│ within the Windows machines but you have to do it manually. For │
│ information on the windows check this page. For UNIX systems, │
│ use one of the following automatic installation scripts: │
└──┬────────────────────────────────────────────────┬──────────────┘─ ─ ┐
│ curl -sSL https://kary.us/nota/install.sh | sh │ Installation
├────────────────────────────────────────────────┼ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┘
│ wget -qO- https://kary.us/nota/install.sh | sh │
└────────────────────────────────────────────────┘
┌──────────────────┐
│ Language Grammar │
└────┬─────────────┘
│
─ ─ ─ ─ ─ ─ ─ ─ ─ ┼───────────────────────────────────────────────────┐
Grammar Component │ Description │
─ ─ ─ ─ ─ ─ ─ ─ ─ ┼───────────────────────────────────────────────────┤
Normal Numbers │ Numbers in Nota can be in the normal form. │
│ Integer form like 0 or 42480. And in the decimal │
│ form like 1.8402 or 0.5 but remember decimal only │
│ numbers cannot be without zero: so 0.5 is │
│ possible but .5 is not. │
─ ─ ─ ─ ─ ─ ─ ─ ─ ┼───────────────────────────────────────────────────┤
Hex Number │ Hexadecimal Numbers are supported and must be │
│ started with the 0x sign. So 0xfff is a number as │
│ well as 0x123. │
─ ─ ─ ─ ─ ─ ─ ─ ─ ┼───────────────────────────────────────────────────┤
Names │ Nota approaches identifiers much differently than │
│ any other language. In Nota identifiers can have │
│ space within them, so no more camelCase, │
│ PascalCase, –kebab-case, what_ever; You can │
│ simply write things like size of the planet and │
│ it works. │
│ │
│ Also to make it more interesting, Nota even gives │
│ you ‘ (apostrophe) and therefore you can have │
│ things like radius of earth or earth’s radius. │
│ │
│ Numbers are also allowed (but not for the first │
│ letter). You can have names like: X5 or X 5 and │
│ etc. │
─ ─ ─ ─ ─ ─ ─ ─ ─ ┼───────────────────────────────────────────────────┤
Binary Operator │ Binary operators in Nota are: +, -, *, /, ^, %, │
│ ?, and !. They are fully explained in the Binary │
│ Operators section of the Language Reference. │
─ ─ ─ ─ ─ ─ ─ ─ ─ ┼───────────────────────────────────────────────────┤
Negation │ The only unary operator that Nota defines is the │
│ value negation – operator. E.g: -13 + -sin[x]. │
─ ─ ─ ─ ─ ─ ─ ─ ─ ┼───────────────────────────────────────────────────┤
Parentheses │ Nota provides the parenthesis notation to reorder │
│ precedence like: (1 + 2) * 3. │
─ ─ ─ ─ ─ ─ ─ ─ ─ ┼───────────────────────────────────────────────────┤
Parentheses │ Functions in Nota are written not with │
│ parenthesis but with brackets (Sin[x], Log[2, │
│ 100], …). │
│ │
│ Just like identifiers they are case insensitive │
│ so it doesn’t matter how you write them: log[x] = │