Hi may I know if its possible to use more advanced mathematical operators in the templates? I have successfully use simple operators up to multiplications and to the power of x^y, but is it possible to have natural logarithms? ln(x) and e(x)?
https://jinja.palletsprojects.com/en/latest/templates/#math
The link for jinja math operators, these are the supported operators
{{ log(52) }}
gives the natural log
You can also go old school
{% set e = 2.718281828459045 %}
{{ e**3.9512437185814 }}
e is already included in the namespace.
{{ e**x }}
log defaults to e as a base, making log actually ln (It’s missleading)
{{ log(x) }}
Check out all the extra math/numerical functions/filters added into the jinja environment
Thanks all, the link shared by petro has the list of the functions.