Skip to content

Xcalc: Internal Functions

Read Stanton edited this page Feb 12, 2021 · 14 revisions

Internal Functions

Expressions

struct(ex)

  • Disassembles component expressions of ex (addition/subtraction)

  • Type: Function

  • Returns list of expressions

struct2(ex)

  • Disassembles component expressions of ex (multiplication/division)

  • Type: Function

  • Returns list of expressions

struct_alt(ex)

  • Disassembles component expressions of ex (alternative)

  • Type: Function

  • Returns list of expressions

unpack(list)

  • Reassembles a list of expressions returned by one of the aforementioned struct functions

  • Type: Function

  • Returns reassembled original expression

Other

ls_remi(list)

  • Removes all imaginary/complex values of list

  • Type: Function

  • Returns filtered list

z_safe_bool(value)

  • Returns false if value is not a boolean

  • Type: Function

  • Otherwise it returns value

z_parse_fn(function)

  • Type: Program

  • Stores function into f_(x)

z_parse_fn2(function, name, var)

  • Type: Program

  • Stores function into function variable with name name and variable var