MCPcopy Create free account
hub / github.com/KratosMultiphysics/Kratos / te_interp

Function te_interp

external_libraries/tinyexpr/tinyexpr/tinyexpr.c:719–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717
718
719double te_interp(const char *expression, int *error) {
720 te_expr *n = te_compile(expression, 0, 0, error);
721
722 double ret;
723 if (n) {
724 ret = te_eval(n);
725 te_free(n);
726 } else {
727 ret = NAN;
728 }
729 return ret;
730}
731
732static void pn (const te_expr *n, int depth) {
733 int i, arity;

Callers

nothing calls this directly

Calls 3

te_compileFunction · 0.85
te_evalFunction · 0.85
te_freeFunction · 0.85

Tested by

no test coverage detected