MakeFloatCompiledFunction(S)

mkfunc.spad line 335 [edit on github]

MakeFloatCompiledFunction transforms top-level objects into compiled Lisp functions whose arguments are Lisp floats. This by-passes the FriCAS compiler and interpreter, thereby gaining several orders of magnitude.

makeFloatFunction : (S, Symbol) -> Mapping(DoubleFloat, DoubleFloat)

makeFloatFunction(expr, x) returns a Lisp function f: DoubleFloat -> DoubleFloat defined by f(x) == expr. Function f is compiled and directly applicable to objects of type DoubleFloat.

makeFloatFunction : (S, Symbol, Symbol) -> Mapping(DoubleFloat, DoubleFloat, DoubleFloat)

makeFloatFunction(expr, x, y) returns a Lisp function f: (DoubleFloat, DoubleFloat) -> DoubleFloat defined by f(x, y) == expr. Function f is compiled and directly applicable to objects of type (DoubleFloat, DoubleFloat).

make_imaginary_part_function : (S, Symbol) -> Mapping(DoubleFloat, DoubleFloat)

make_imaginary_part_function(expr, x) returns a Lisp function f: DoubleFloat -> DoubleFloat defined by f(x) == imag(expr). Function f is compiled and directly applicable to objects of type DoubleFloat.

make_real_part_function : (S, Symbol) -> Mapping(DoubleFloat, DoubleFloat)

make_real_part_function(expr, x) returns a Lisp function f: DoubleFloat -> DoubleFloat defined by f(x) == real(expr). Function f is compiled and directly applicable to objects of type DoubleFloat.