Skip to content

Supported function syntax

Leonhard Masche edited this page Aug 6, 2022 · 4 revisions

Here you can see some of the function syntax that is supported by this plugin. It is powered by obsidian-functionplot, 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 my Math
  • logic
    • <
    • <=
    • >
    • >=
    • ==
    • ===
    • !=
    • !==
    • >>
    • <<
    • >>>
    • |
    • &
  • the ternary operator:
    • condition ? expression1 : expression2

If you find any missing information on this page, please suggest a change.

Clone this wiki locally