mirror of
				https://github.com/eledio-devices/thirdparty-tinyexpr.git
				synced 2025-10-31 00:32:38 +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;
 | |
| }
 |