-
-
Notifications
You must be signed in to change notification settings - Fork 189
Math
Giorgio Garofalo edited this page May 18, 2025
·
8 revisions
Mathematical functions provide a way of performing numeric operations.
.var {radius} {8}
If we try to calculate the **surface** of a circle of **radius .radius**,
we'll find out it's **.pow {.radius} to:{2}::multiply {.pi}::truncate {2}**
If we try to calculate the surface of a circle of radius 8, we’ll find out it’s 201.06
Handling complex math is particularly effective when used in combination with function call chaining. The following two calls are equivalent, with the latter being more natural:
.truncate {.multiply {.pow {.radius} to:{2}} by:{.pi}} {2}
.pow {.radius} to:{2}::multiply {.pi}::truncate {2}
Please refer to stdlib's Math
documentation for a complete list of available functions.
- Figures
- Image size
- TeX formulas
- Table caption
- Decorative headings
- Alerts (quote types)
- Quotation source
- Page breaks
- Text symbols (text replacement)
- Syntax of a function call
- Declaring functions
- Dynamic typing
- Including other Quarkdown files
- Importing external libraries
- Localization
- Document metadata
- Theme
- CSS
- Fonts
- Page format
- Page margin content
- Page counter
- Automatic page break
- Numbering
- Paragraph style
- Caption position
- Table of contents
- Bibliography
- Stacks (row, column, grid)
- Container
- Align
- Float
- Figure
- Clip
- Box
- Collapsible
- Whitespace
- Variables
- Optionality
- Math
- Conditional statements
- Loops
- Let
- Destructuring
- String manipulation
- Table manipulation: sorting, computing, and more
- Generators
- String
- Number
- Markdown content
- Boolean
- None
- Enumeration entry
- Iterable
- Dictionary
- Range
- Lambda
- Size(s)
- Color
- Dynamic
- Paper: abstract, definitions, theorems, and more