@@ -11,7 +11,7 @@ title: "Standard Library"
11
11
<table class =" libitem " >
12
12
<tr >
13
13
<td colspan="2">
14
- <b>gather/sort</b> - Generates an ordering for a set
14
+ <b>gather/sort</b> - generates an ordering for a set
15
15
</td>
16
16
</tr >
17
17
55
55
<table class =" libitem " >
56
56
<tr >
57
57
<td colspan="2">
58
- <b>gather/count</b> - Returns the number of elements in a set
58
+ <b>gather/count</b> - returns the number of elements in a set
59
59
</td>
60
60
</tr >
61
61
<tr >
92
92
<table class =" libitem " >
93
93
<tr >
94
94
<td colspan="2">
95
- <b>gather/sum</b> - Returns the sum of values in a set of attributes
95
+ <b>gather/sum</b> - returns the sum of values in a set of attributes
96
96
</td>
97
97
</tr >
98
98
@@ -133,7 +133,7 @@ commit
133
133
<table class =" libitem " >
134
134
<tr >
135
135
<td colspan="2">
136
- <b>math/floor</b> - Rounds a number down
136
+ <b>math/floor</b> - rounds a number down
137
137
</td>
138
138
</tr >
139
139
161
161
<table class =" libitem " >
162
162
<tr >
163
163
<td colspan="2">
164
- <b>math/ceiling</b> - Rounds a number up
164
+ <b>math/ceiling</b> - rounds a number up
165
165
</td>
166
166
</tr >
167
167
189
189
<table class =" libitem " >
190
190
<tr >
191
191
<td colspan="2">
192
- <b>math/round</b> - Rounds a number to the nearest integer
192
+ <b>math/round</b> - rounds a number to the nearest integer
193
193
</td>
194
194
</tr >
195
195
217
217
<table class =" libitem " >
218
218
<tr >
219
219
<td colspan="2">
220
- <b>math/sin</b> - Sine of an angle
220
+ <b>math/sin</b> - sine of an angle
221
221
</td>
222
222
</tr >
223
223
245
245
<table class =" libitem " >
246
246
<tr >
247
247
<td colspan="2">
248
- <b>math/cos</b> - Cosine of an angle
248
+ <b>math/cos</b> - cosine of an angle
249
249
</td>
250
250
</tr >
251
251
273
273
<table class =" libitem " >
274
274
<tr >
275
275
<td colspan="2">
276
- <b>math/tan</b> - Tangent of an angle
276
+ <b>math/tan</b> - tangent of an angle
277
277
</td>
278
278
</tr >
279
279
301
301
<table class =" libitem " >
302
302
<tr >
303
303
<td colspan="2">
304
- <b>math/max</b> - The greater of two values
304
+ <b>math/max</b> - the greater of two values
305
305
</td>
306
306
</tr >
307
307
332
332
<table class =" libitem " >
333
333
<tr >
334
334
<td colspan="2">
335
- <b>math/min</b> - The lesser of two values
335
+ <b>math/min</b> - the lesser of two values
336
336
</td>
337
337
</tr >
338
338
363
363
<table class =" libitem " >
364
364
<tr >
365
365
<td colspan="2">
366
- <b>math/mod</b> - Modulo division
366
+ <b>math/mod</b> - modulo division
367
367
</td>
368
368
</tr >
369
369
392
392
<table class =" libitem " >
393
393
<tr >
394
394
<td colspan="2">
395
- <b>math/absolute</b> - Absolute value of a number
395
+ <b>math/absolute</b> - absolute value of a number
396
396
</td>
397
397
</tr >
398
398
@@ -429,7 +429,63 @@ commit
429
429
<table class =" libitem " >
430
430
<tr >
431
431
<td colspan="2">
432
- <b>math/to-fixed</b> - Formats a number as a string to a certain number of decimal places
432
+ <b>math/pow</b> - raise a value to an exponent
433
+ </td>
434
+ </tr >
435
+
436
+ <tr >
437
+ <td>
438
+ <ul>
439
+ <li><strong>value</strong> - the vale to exponentiate</li>
440
+ <li><strong>exponent</strong> - the exponent</li>
441
+ </ul>
442
+ </td>
443
+ <td>
444
+ <code>
445
+ Calculate 2 ^ 3
446
+ ```
447
+ search
448
+ x = math/pow[value: 2 exponent: 3]
449
+ bind
450
+ [#ui/text text: "2 ^ 3 = {{x}}"]
451
+ ```
452
+ </code >
453
+ </td>
454
+ </tr >
455
+ </table >
456
+
457
+ <table class =" libitem " >
458
+ <tr >
459
+ <td colspan="2">
460
+ <b>math/ln</b> - calculate the natural log of a value
461
+ </td>
462
+ </tr >
463
+
464
+ <tr >
465
+ <td>
466
+ <ul>
467
+ <li><strong>value</strong> - the value to take the natural log of</li>
468
+ </ul>
469
+ </td>
470
+ <td>
471
+ <code>
472
+ calculate the natural log of 17
473
+ ```
474
+ search
475
+ x = math/ln[value: 17]
476
+
477
+ bind
478
+ [#ui/text text: "ln(17) = {{x}}"]
479
+ ```
480
+ </code >
481
+ </td>
482
+ </tr >
483
+ </table >
484
+
485
+ <table class =" libitem " >
486
+ <tr >
487
+ <td colspan="2">
488
+ <b>math/to-fixed</b> - formats a number as a string to a certain number of decimal places
433
489
</td>
434
490
</tr >
435
491
461
517
<table class =" libitem " >
462
518
<tr >
463
519
<td colspan="2">
464
- <b>math/range</b> - Generates a range of numbers
520
+ <b>math/range</b> - generates a range of numbers
465
521
</td>
466
522
</tr >
467
523
490
546
<table class =" libitem " >
491
547
<tr >
492
548
<td colspan="2">
493
- <b>random/number</b> - Generates a random number between 1 and 0
549
+ <b>random/number</b> - generates a random number between 1 and 0
494
550
</td>
495
551
</tr >
496
552
@@ -527,7 +583,7 @@ commit
527
583
<table class =" libitem " >
528
584
<tr >
529
585
<td colspan="2">
530
- <b>string/replace</b> - Replaces a string of text with another
586
+ <b>string/replace</b> - replaces a string of text with another
531
587
</td>
532
588
</tr >
533
589
558
614
<table class =" libitem " >
559
615
<tr >
560
616
<td colspan="2">
561
- <b>string/get</b> - Gets a character from a specific location in a string
617
+ <b>string/get</b> - gets a character from a specific location in a string
562
618
</td>
563
619
</tr >
564
620
588
644
<table class =" libitem " >
589
645
<tr >
590
646
<td colspan="2">
591
- <b>string/uppercase</b> - Converts a string to uppercase
647
+ <b>string/uppercase</b> - converts a string to uppercase
592
648
</td>
593
649
</tr >
594
650
616
672
<table class =" libitem " >
617
673
<tr >
618
674
<td colspan="2">
619
- <b>string/lowercase</b> - Converts a string to lowercase
675
+ <b>string/lowercase</b> - converts a string to lowercase
620
676
</td>
621
677
</tr >
622
678
644
700
<table class =" libitem " >
645
701
<tr >
646
702
<td colspan="2">
647
- <b>string/index-of</b> - Returns the position of the first occurrence of a specified value in a string
703
+ <b>string/index-of</b> - returns the position of the first occurrence of a specified value in a string
648
704
</td>
649
705
</tr >
650
706
673
729
<table class =" libitem " >
674
730
<tr >
675
731
<td colspan="2">
676
- <b>string/codepoint-length</b> - Returns the length of a string in Unicode code points.
732
+ <b>string/codepoint-length</b> - returns the length of a string in Unicode code points.
677
733
</td>
678
734
</tr >
679
735
0 commit comments