mirror of
https://github.com/eledio-devices/thirdparty-tinyexpr.git
synced 2025-10-30 16:15:41 +01:00
11 lines
241 B
C
11 lines
241 B
C
#include "tinyexpr.h"
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
const char *c = "sqrt(5^2+7^2+11^2+(8-2)^2)";
|
|
double r = te_interp(c, 0);
|
|
printf("The expression:\n\t%s\nevaluates to:\n\t%f\n", c, r);
|
|
return 0;
|
|
}
|