From f643f599a7fe847ac88b8d0295f45f1f92feee10 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 28 Dec 2021 02:59:40 -0500 Subject: [PATCH] Use right exponentiation associativity and natural log in tinyexpr. --- src/tinyexpr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tinyexpr.c b/src/tinyexpr.c index 90ed8fce..92559402 100755 --- a/src/tinyexpr.c +++ b/src/tinyexpr.c @@ -27,12 +27,12 @@ /* Exponentiation associativity: For a^b^c = (a^b)^c and -a^b = (-a)^b do nothing. For a^b^c = a^(b^c) and -a^b = -(a^b) uncomment the next line.*/ -/* #define TE_POW_FROM_RIGHT */ +#define TE_POW_FROM_RIGHT /* Logarithms For log = base 10 log do nothing For log = natural log uncomment the next line. */ -/* #define TE_NAT_LOG */ +#define TE_NAT_LOG #include "tinyexpr.h" #include