This is a N-Dimensional Vector class written in C++. While it can be used for any dimension, if you would like to use 3 or less dimensions including rotation functions check out my previous post (here) VectorND.cpp 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 [...]
Archive for the ‘Mathematics’ Category
Vector 3D structure with Operation overloads and basic functions – C++
Posted by kenny on September 16th, 2010
This is my Vector3D structure with a set of appropriate operation overloads(-,+,/,*,–,++,etc) that I use for various math operations as well. Feel free to add upon it or do whatever you like with it. (Update the — and ++ operators are not correctly overloaded ) 1 2 3 4 5 6 7 8 9 10 [...]
Ackermann–Péter function (2 arguments) – C/C++ – Recursive Implentation
Posted by kenny on July 16th, 2010
This is an implementation of the 2 argument version of the Ackermann Function (i.e. Ackermann-Péter function). In essence, this is an example of a very simple recursive function is an example of a total computable function that is not primitive recursive. Instead of making the internet even more redundant with unnecessary text, just click the [...]

Posted in
Tags:

