| Script | Author |
|---|---|
|
arab2roman
Constructs a Roman numeric representation of a given integer (which should be typed as a real, not a string) between 1 and 3,999,999. |
By Daniel
January 11, 2009 |
|
bin2int
Converts a binary sequence of any size into integer format |
By Daniel
December 24, 2008 |
|
bin2str
Converts a binary sequence string to an ASCII string |
By Daniel
December 24, 2008 |
|
data_pack
Packs the given data pieces into a single value and returns it as a condensed string |
By Daniel
December 24, 2008 |
|
data_unpack
Unpacks data stored with data_pack function and stores the individual values in an array |
By Daniel
December 24, 2008 |
|
dec2hex
Returns a hexadecimal string representation of some integer (which should be given as a real, not a string). |
By Daniel
January 11, 2009 |
|
draw_piechart
Draws a pie chart illustrating the given list of data. The list does not need to be normalized; this is done automatically. Note that this function only draws the shape of the chart, not the labels.... |
By Daniel
December 27, 2008 |
|
ds_grid_repr
Returns a string representation of the given grid |
By Daniel
December 29, 2008 |
|
ds_list_concat
Constructs (and returns) a concatenation of L1 and L2 without mofifying either of the two lists |
By Daniel
December 30, 2008 |
|
ds_list_filter
Filters a list by calling script on each element and retaining only the elements for which the (1-ary) script returns true |
By Daniel
December 30, 2008 |
|
ds_list_foldl
Folds a ds_list from right to left and returns the result. This works as follows. The first sub-result is obtained by executing scr with two arguments: init, and the last element of the list.... |
By Daniel
January 3, 2009 |
|
ds_list_foldr
Folds a ds_list from left to right and returns the result. This works as follows. The first sub-result is obtained by executing scr with two arguments: init, and the first element of the list.... |
By Daniel
January 3, 2009 |
|
ds_list_map
Transforms each element of a list by mapping it through a 1-ary script |
By Daniel
December 30, 2008 |
|
ds_list_max
Returns the largest real in a list of reals |
By Daniel
December 26, 2008 |
|
ds_list_min
Returns the smallest real in a list of reals |
By Daniel
December 26, 2008 |
|
ds_list_normalize
Normalizes a list of reals so that all the entries add up to 1 |
By Daniel
January 3, 2009 |
|
ds_list_random_element
Returns a randomly-selected element of the given list |
By Daniel
December 26, 2008 |
|
ds_list_remove_redundancy
Efficiently removes redundant elements from a list |
By Daniel
December 26, 2008 |
|
ds_list_repr
Returns a string representation of a list in the form [E1, E2, ...]. Useful for debugging. |
By Daniel
December 26, 2008 |
|
ds_list_reverse
Reverses the order of elements in some list with minimal overhead |
By Daniel
December 29, 2008 |
|
ds_list_sort_ext
This script sorts a list using a given quantifier script. This should be a 1-ary script which takes a list element as input and returns a real value that can be used in sorting. For... |
By Daniel
December 26, 2008 |
|
ds_list_subset_can_sum
Tests whether some subset of the given list has a given sum. The algorithm is fast with small (target) sums, but slow with larger ones. |
By Daniel
January 4, 2009 |
|
ds_list_sum
Sums the entries in a list of reals |
By Daniel
December 26, 2008 |
|
ds_map_repr
Returns a string representation of the given map |
By Daniel
December 29, 2008 |
|
ds_priority_repr
Returns a string representation of the given priority queue |
By Daniel
December 29, 2008 |
|
ds_queue_repr
Returns a string representation of the given queue |
By Daniel
December 29, 2008 |
|
ds_stack_repr
Returns a string representation of the given stack |
By Daniel
December 29, 2008 |
|
equal
Tests whether two pieces of data are equal in both type and content. Useful for avoiding errors from comparing strings with reals. |
By Daniel
December 26, 2008 |
|
get_bit
Extracts one bit from some number n. bit=0 indicates the least significant bit (worth 1, usually written on the far right), bit=1 indicates the next (worth 2), and so forth; in... |
By Daniel
January 4, 2009 |
|
int2bin
Converts an integer of any size into binary format |
By Daniel
December 24, 2008 |
|
parseInt
Parse a numeric string in some specified base and the quantity as an integer |
By Daniel
March 21, 2009 |
|
set_bit
Returns a modified version of n with some specified bit set to val. bit=0 indicates the least significant bit (worth 1, usually written on the far right), bit=1 indicates the next... |
By Daniel
January 4, 2009 |
|
str2bin
Converts a regular string to a binary sequence string |
By Daniel
December 24, 2008 |
|
timediff
Returns a string describing the given time interval (dt) in English. For example, timediff(1000*60*60*34) will give "one day, ten hours". |
By Daniel
January 9, 2009 |
|
toString
Generates a string representation of an integer using the specified base |
By Daniel
March 21, 2009 |