Skip to content

ArashPartow/exprtk-extras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

The C++ ExprTk Extras are a series of additional examples demonstrating in more detail various aspects of ExprTk and its usage.

Download

https://www.partow.net/programming/exprtk/index.html

Compatibility

The ExprTk Extras implementation is fully compatible with the following C++ compilers:

  • GNU Compiler Collection (3.5+)
  • Clang/LLVM (1.1+)
  • Microsoft Visual Studio C++ Compiler (7.1+)
  • Intel® C++ Compiler (8.x+)
  • AMD Optimizing C++ Compiler (1.2+)
  • PGI C++ (10.x+)
  • IBM XL C/C++ (9.x+)
  • C++ Builder (XE4+)

List Of Examples

# Description File
00 Binomial coefficient example (n-choose-r) exprtk_binomial_coefficient.cpp
01 Pascal's triangle exprtk_pascals_triangle.cpp
02 Black-Scholes-Merton model benchmark exprtk_bsm_benchmark.cpp
03 Simple calculator exprtk_calc.cpp
04 Simple arithmetic expression calculator exprtk_arithmetic_evaluator.cpp
05 Collatz conjecture exprtk_collatz.cpp
06 Expression generator exprtk_exprgen.cpp
07 Fizz-Buzz problem exprtk_fizzbuzz.cpp
08 Function call benchmark exprtk_funcall_benchmark.cpp
09 GCD implementation exprtk_gcd.cpp
10 GNUplot single curve example exprtk_gnuplot.cpp
11 GNUplot multi-curve example exprtk_gnuplot_multi.cpp
12 Mandelbrot fractal generator exprtk_mandelbrot.cpp
13 Approximation of E via the Monte-Carlo method exprtk_montecarlo_e.cpp
14 Approximation of Pi via the Monte-Carlo method exprtk_montecarlo_pi.cpp
15 Approximation of Pi via Wiener process exprtk_wiener_process_pi.cpp
16 Approximation of Pi via Archimedes method exprtk_archimedes_pi.cpp
17 Ten thousand digits of Pi via spigot algorithm exprtk_pi_10kdigits.cpp
18 Ten thousand digits of E via spigot algorithm exprtk_e_10kdigits.cpp
19 Maximum subarray sum (Kadane's algorithm) exprtk_max_subarray_sum.cpp
20 Nth-root via the bisection method exprtk_nthroot_bisection.cpp
21 ExprTk Read-Evaluate-Print-Loop (REPL) exprtk_repl.cpp
22 Skeleton for string APIs exprtk_str_funcs.hpp
23 Sieve of Eratosthenes exprtk_prime_sieve.cpp
24 Sieve of Eratosthenes (vectorized) exprtk_prime_sieve_vectorized.cpp
25 Primes via the naive method exprtk_naive_primes.cpp
26 Miller-Rabin probabilistic primality test exprtk_miller_rabin_primality_test.cpp
27 Sum of prime factors for first N numbers exprtk_sumofprimes.cpp
28 Test expression generator exprtk_testgen.cpp
29 Truth table generator from arbitrary expressions exprtk_truthtable_gen.cpp
30 Vector processing benchmark exprtk_vector_benchmark.cpp
31 Multi-threaded vector processing benchmark exprtk_vector_benchmark_multithreaded.cpp
32 L-Norm of vectors exprtk_vectornorm.cpp
33 Fermat's integer factorization method exprtk_factorize_fermat.cpp
34 Pollard's Rho integer factorization method exprtk_factorize_pollard.cpp
35 Logical deduction riddle exprtk_riddle.cpp
36 Pythagorean triples exprtk_pythagorean_triples.cpp
37 Pyramid Example exprtk_pyramid.cpp
38 Immutable symbol table example exprtk_immutable_symbol_table_example.cpp
39 CPU instruction primer exprtk_instruction_primer.cpp
40 Vector RTC overhead analysis exprtk_rtc_overhead.cpp
41 Loop RTC timeout exprtk_loop_timeout_rtc.cpp
42 Compilation timeout check exprtk_compilation_timeout.cpp
43 Vectorized binomial option pricing model exprtk_vectorized_binomial_model.cpp
44 Merton Jump diffusion process based option pricing model exprtk_jump_diffusion_process.cpp
45 Monte-Carlo based european option pricing model exprtk_montecarlo_option_pricing_model.cpp
46 American option binomial pricing model exprtk_american_option_binomial_model.cpp
47 Conway's game of life exprtk_game_of_life.cpp
48 Sudoku solver exprtk_sudoku_solver.cpp
49 N-Queens problem exprtk_nqueens_problem.cpp
50 Magic square example exprtk_magic_square.cpp
51 Tower of Hanoi example exprtk_tower_of_hanoi.cpp
52 Maze Generator exprtk_maze_generator.cpp
53 Recursive Fibonacci example exprtk_recursive_fibonacci.cpp
54 Ornstein-Uhlenbeck Process exprtk_ornstein_uhlenbeck_process.cpp
55 Normal random variables via the Marsaglia method exprtk_normal_random_marsaglia_method.cpp
56 Trigonometry In Degrees Example exprtk_degree_trigonometry_example.cpp
57 Import packages example exprtk_import_packages.cpp
58 Extract expression dependents exprtk_extract_dependents.cpp
59 Extract Symbol Table function names exprtk_symtab_functions.cpp
60 Group/Set operations (add, create, contains, size, get, erase) exprtk_groups_examples.cpp
61 Vector resize example exprtk_vector_resize_example.cpp
62 Vector resize inline with expression example exprtk_vector_resize_inline_example.cpp