Method
rules
(
rules:
| Rule
| ReadonlyArray<Rule | BoxedRule>
| BoxedRuleSet
| undefined
| null,
options?: {
canonical?: boolean;
/** Default purpose applied to any rule in the set that doesn't carry
* its own `purpose` tag (a per-rule tag takes precedence). */
purpose?: RulePurpose;
}
)
Source from the content-addressed store, hash-verified
| 1848 | * The return value is an object with methods to perform arithmetic |
| 1849 | * operations: |
| 1850 | * - `re` (real part, as a JavaScript `number`) |
| 1851 | * - `im` (imaginary part, as a JavaScript `number`) |
| 1852 | * - `add()` |
| 1853 | * - `sub()` |
| 1854 | * - `neg()` (unary minus) |
| 1855 | * - `mul()` |
| 1856 | * - `div()` |
| 1857 | * - `pow()` |
| 1858 | * - `sqrt()` (square root) |
| 1859 | * - `exp()` (e^x) |
| 1860 | * - `log()` |
| 1861 | * - `ln()` (natural logarithm) |
| 1862 | * - `mod()` |
| 1863 | |
| 1864 | * - `abs()` |
| 1865 | * - `ceil()` |
| 1866 | * - `floor()` |
| 1867 | * - `round()` |
| 1868 | |