Browse Source

Use right exponentiation associativity and natural log in tinyexpr.

tags/v2.0.5
Andrew Belt 3 years ago
parent
commit
f643f599a7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/tinyexpr.c

+ 2
- 2
src/tinyexpr.c View File

@@ -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 <stdlib.h>


Loading…
Cancel
Save