Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Math code snippet to stripe away equal terms in two sets. For example: for sets n and d, where n = {1,2,3,4} and d = {1,2,3}, StripeAwayTerms replaces the 2 and 3 of both sets by a 1. This can be used to divide two factorials.
#include <vector> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.