readme.md

January 1, 2025 · View on GitHub

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

#DescriptionFile
00Binomial coefficient example (n-choose-r)exprtk_binomial_coefficient.cpp
01Pascal's triangleexprtk_pascals_triangle.cpp
02Black-Scholes-Merton model benchmarkexprtk_bsm_benchmark.cpp
03Simple calculatorexprtk_calc.cpp
04Simple arithmetic expression calculatorexprtk_arithmetic_evaluator.cpp
05Collatz conjectureexprtk_collatz.cpp
06Expression generatorexprtk_exprgen.cpp
07Fizz-Buzz problemexprtk_fizzbuzz.cpp
08Function call benchmarkexprtk_funcall_benchmark.cpp
09GCD implementationexprtk_gcd.cpp
10GNUplot single curve exampleexprtk_gnuplot.cpp
11GNUplot multi-curve exampleexprtk_gnuplot_multi.cpp
12Mandelbrot fractal generatorexprtk_mandelbrot.cpp
13Julia set fractal generatorexprtk_julia_set_fractal.cpp
14Radial contour graphing exampleexprtk_radial_contour.cpp
15Chladni contour graphing exampleexprtk_chladni_contour.cpp
16Approximation of E via the Monte-Carlo methodexprtk_montecarlo_e.cpp
17Approximation of Pi via the Monte-Carlo methodexprtk_montecarlo_pi.cpp
18Approximation of Pi via Wiener processexprtk_wiener_process_pi.cpp
19Approximation of Pi via Archimedes methodexprtk_archimedes_pi.cpp
20Ten thousand digits of Pi via spigot algorithmexprtk_pi_10kdigits.cpp
21Ten thousand digits of E via spigot algorithmexprtk_e_10kdigits.cpp
22Maximum subarray sum (Kadane's algorithm)exprtk_max_subarray_sum.cpp
23Nth-root via the bisection methodexprtk_nthroot_bisection.cpp
24ExprTk Read-Evaluate-Print-Loop (REPL)exprtk_repl.cpp
25Skeleton for string APIsexprtk_str_funcs.hpp
26Sieve of Eratosthenesexprtk_prime_sieve.cpp
27Sieve of Eratosthenes (vectorized)exprtk_prime_sieve_vectorized.cpp
28Primes via the naive methodexprtk_naive_primes.cpp
29Miller-Rabin probabilistic primality testexprtk_miller_rabin_primality_test.cpp
30Sum of prime factors for first N numbersexprtk_sumofprimes.cpp
31Test expression generatorexprtk_testgen.cpp
32Truth table generator from arbitrary expressionsexprtk_truthtable_gen.cpp
33Vector processing benchmarkexprtk_vector_benchmark.cpp
34Multi-threaded vector processing benchmarkexprtk_vector_benchmark_multithreaded.cpp
35L-Norm of vectorsexprtk_vectornorm.cpp
36Fermat's integer factorization methodexprtk_factorize_fermat.cpp
37Pollard's Rho integer factorization methodexprtk_factorize_pollard.cpp
38Logical deduction riddleexprtk_riddle.cpp
39Pythagorean triplesexprtk_pythagorean_triples.cpp
40Pyramid Exampleexprtk_pyramid.cpp
41Immutable symbol table exampleexprtk_immutable_symbol_table_example.cpp
42CPU instruction primerexprtk_instruction_primer.cpp
43Vector RTC overhead analysisexprtk_rtc_overhead.cpp
44Loop RTC timeoutexprtk_loop_timeout_rtc.cpp
45Compilation timeout checkexprtk_compilation_timeout.cpp
46Vectorized binomial option pricing modelexprtk_vectorized_binomial_model.cpp
47Merton Jump diffusion process based option pricing modelexprtk_jump_diffusion_process.cpp
48Monte-Carlo based european option pricing modelexprtk_montecarlo_option_pricing_model.cpp
49American option binomial pricing modelexprtk_american_option_binomial_model.cpp
50Conway's game of lifeexprtk_game_of_life.cpp
51Sudoku solverexprtk_sudoku_solver.cpp
52N-Queens problemexprtk_nqueens_problem.cpp
53Magic square exampleexprtk_magic_square.cpp
54Tower of Hanoi exampleexprtk_tower_of_hanoi.cpp
55Maze Generatorexprtk_maze_generator.cpp
56Recursive Fibonacci exampleexprtk_recursive_fibonacci.cpp
57Ornstein-Uhlenbeck Processexprtk_ornstein_uhlenbeck_process.cpp
58Normal random variables via the Marsaglia methodexprtk_normal_random_marsaglia_method.cpp
59Trigonometry In Degrees Exampleexprtk_degree_trigonometry_example.cpp
60Import packages exampleexprtk_import_packages.cpp
61Extract expression dependentsexprtk_extract_dependents.cpp
62Extract Symbol Table function namesexprtk_symtab_functions.cpp
63Group/Set operations (add, create, contains, size, get, erase)exprtk_groups_examples.cpp
64Vector resize exampleexprtk_vector_resize_example.cpp
65Vector resize inline with expression exampleexprtk_vector_resize_inline_example.cpp