Liking cljdoc? Tell your friends :D

sicmutils.infix


*TeX-vertical-down-tuples*clj/s


->infixclj/s

Converts an S-expression to printable infix form. Numeric exponents are written as superscripts. Partial derivatives get subscripts.

Converts an S-expression to printable infix form. Numeric exponents are
written as superscripts. Partial derivatives get subscripts.
raw docstring

->JavaScriptclj/s

Convert the given (simplified) expression to a JavaScript function. Parameters to the function will be extracted from the symbols in the expression. Common subexpression elimination will be performed and auxiliary variables will be bound in the body of the function; the names of these symbols are obtained from the nullary function option :symbol-generator, which defaults to a function yielding _1, .... If :parameter-order is specified, it is used to determine function parameter order in one of two ways: if it is set to a function, that function will be called on the sequence of parameters and is expected to return the parameters in the desired sequence. Otherwise, it is interpreted as the sequence of parameters itself. If not specified, the default behavior issort`.

If :deterministic? true is supplied, the function will assign variables by sorting the string representations of each term before assignment. Otherwise, the nondeterministic order of hash maps inside this function won't guarantee a consistent variable naming convention in the returned function. For tests, set :deterministic? true.

Convert the given (simplified) expression to a JavaScript function.
Parameters to the function will be extracted from the symbols in the
expression. Common subexpression elimination will be performed and auxiliary
variables will be bound in the body of the function; the names of these
symbols are obtained from the nullary function option :symbol-generator, which
defaults to a function yielding `_1, ...`. If `:parameter-order is specified,
it is used to determine function parameter order in one of two ways: if it is
set to a function, that function will be called on the sequence of parameters
and is expected to return the parameters in the desired sequence. Otherwise,
it is interpreted as the sequence of parameters itself. If not specified, the
default behavior is `sort`.

If `:deterministic? true` is supplied, the function will assign variables by
sorting the string representations of each term before assignment. Otherwise,
the nondeterministic order of hash maps inside this function won't guarantee a
consistent variable naming convention in the returned function. For tests, set
`:deterministic? true`.
raw docstring

->TeXclj/s

Convert the given (simplified) expression to TeX format, as a string.

Convert the given (simplified) expression to TeX format, as a string.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close