This commit is contained in:
PaddiM8 2020-12-13 17:23:04 +01:00
commit 1cc0b93627

View File

@ -40,6 +40,7 @@ Run `cargo install kalk_cli`
3. Grab the binary from `targets/release` 3. Grab the binary from `targets/release`
## Syntax ## Syntax
A more complete reference can be found on [the website](https://kalk.strct.net)
### Functions ### Functions
__Defining:__ name(parameter1, parameter2, ...) = expression __Defining:__ name(parameter1, parameter2, ...) = expression
@ -55,7 +56,7 @@ __Defining:__ name = expression
__Using:__ name __Using:__ name
**Example:** `x` **Example:** `x`
### Units ### Units (experimental, are likely to not work properly)
*Note: You only need to define the relationship between two units once. You will be able to convert between both of them.* *Note: You only need to define the relationship between two units once. You will be able to convert between both of them.*
__Defining:__ `unit` name = expression __Defining:__ `unit` name = expression
**Example:** `unit deg = (rad*180)/π` **Example:** `unit deg = (rad*180)/π`