@@ -185,6 +185,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
185185 // Functions
186186 //
187187 Abs : {
188+ description : 'Absolute value (magnitude) of a number.' ,
188189 wikidata : 'Q3317982' , // magnitude 'Q120812 (for reals)
189190 broadcastable : true ,
190191 idempotent : true ,
@@ -201,6 +202,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
201202 } ,
202203
203204 Add : {
205+ description : 'Sum of two or more values.' ,
204206 wikidata : 'Q32043' ,
205207 associative : true ,
206208 commutative : true ,
@@ -266,6 +268,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
266268 } ,
267269
268270 Chop : {
271+ description : 'Replace tiny numeric values with zero.' ,
269272 associative : true ,
270273 broadcastable : true ,
271274 idempotent : true ,
@@ -292,6 +295,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
292295 // },
293296
294297 Divide : {
298+ description : 'Quotient of a numerator and one or more denominators.' ,
295299 wikidata : 'Q1226939' ,
296300 complexity : 2500 ,
297301 broadcastable : true ,
@@ -350,6 +354,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
350354 } ,
351355
352356 Exp : {
357+ description : 'Natural exponential function: e^x.' ,
353358 wikidata : 'Q168698' ,
354359 broadcastable : true ,
355360 complexity : 3500 ,
@@ -504,6 +509,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
504509 } ,
505510
506511 Floor : {
512+ description : 'Rounds a number down to the nearest integer.' ,
507513 wikidata : 'Q56860783' ,
508514 complexity : 1250 ,
509515 broadcastable : true ,
@@ -548,6 +554,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
548554 } ,
549555
550556 Gamma : {
557+ description : 'Gamma function, extending factorial to complex numbers.' ,
551558 wikidata : 'Q190573' ,
552559 complexity : 8000 ,
553560 broadcastable : true ,
@@ -568,6 +575,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
568575 } ,
569576
570577 GammaLn : {
578+ description : 'Natural logarithm of the gamma function.' ,
571579 complexity : 8000 ,
572580 broadcastable : true ,
573581 signature : '(number) -> number' ,
@@ -918,6 +926,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
918926 } ,
919927
920928 Multiply : {
929+ description : 'Product of two or more values.' ,
921930 wikidata : 'Q40276' ,
922931 associative : true ,
923932 commutative : true ,
@@ -1033,6 +1042,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
10331042 } ,
10341043
10351044 Power : {
1045+ description : 'Exponentiation: raise a base to a power.' ,
10361046 wikidata : 'Q33456' ,
10371047 broadcastable : true ,
10381048 complexity : 3500 ,
@@ -1116,6 +1126,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
11161126 } ,
11171127
11181128 Rational : {
1129+ description : 'Construct a rational number from a numerator and denominator.' ,
11191130 complexity : 2400 ,
11201131
11211132 signature : '(number, integer?) -> rational' ,
@@ -1164,6 +1175,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
11641175 } ,
11651176
11661177 Root : {
1178+ description : 'n-th root of a value.' ,
11671179 complexity : 3200 ,
11681180 broadcastable : true ,
11691181
@@ -1231,6 +1243,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
12311243 } ,
12321244
12331245 Round : {
1246+ description : 'Rounds a number to the nearest integer.' ,
12341247 complexity : 1250 ,
12351248 broadcastable : true ,
12361249 signature : '(number) -> integer' ,
@@ -1264,6 +1277,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
12641277
12651278 /** Heaviside step function: H(x) = 0 for x < 0, 1/2 for x = 0, 1 for x > 0 */
12661279 Heaviside : {
1280+ description : 'Heaviside step function.' ,
12671281 complexity : 1200 ,
12681282 broadcastable : true ,
12691283 signature : '(number) -> real' ,
@@ -1278,6 +1292,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
12781292 } ,
12791293
12801294 Sign : {
1295+ description : 'Sign of a number: -1, 0, or 1.' ,
12811296 complexity : 1200 ,
12821297 broadcastable : true ,
12831298 signature : '(number) -> integer' ,
@@ -1362,6 +1377,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
13621377 } ,
13631378
13641379 Square : {
1380+ description : 'Square of a number: x^2.' ,
13651381 wikidata : 'Q3075175' ,
13661382 complexity : 3100 ,
13671383 broadcastable : true ,
@@ -1387,6 +1403,7 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
13871403 } ,
13881404
13891405 Subtract : {
1406+ description : 'Difference between two or more values.' ,
13901407 wikidata : 'Q40754' ,
13911408 complexity : 1350 ,
13921409 broadcastable : true ,
@@ -1575,9 +1592,11 @@ export const ARITHMETIC_LIBRARY: SymbolDefinitions[] = [
15751592
15761593 {
15771594 PreIncrement : {
1595+ description : 'Increment a number by one.' ,
15781596 signature : '(number) -> number' ,
15791597 } ,
15801598 PreDecrement : {
1599+ description : 'Decrement a number by one.' ,
15811600 signature : '(number) -> number' ,
15821601 } ,
15831602 } ,
0 commit comments