Skip to content

Supported function syntax

aprzn123 edited this page Nov 29, 2022 · 4 revisions

Here you can see some of the function syntax that is supported by this plugin. It is powered by function-plot, which in turn uses builtin-math-eval.

Here are some of the expressions built-in-math-eval supports:

  • arithmetic functions and operators:
    • add and +
    • sub and -
    • mul and *
    • div and /
    • pow and ^
    • mod and %
  • all the functions and constants supported by Math
  • logic
    • <
    • <=
    • >
    • >=
    • ==
    • ===
    • !=
    • !==
    • >>
    • <<
    • >>>
    • |
    • &
  • the ternary operator:
    • condition ? expression1 : expression2
Clone this wiki locally