const double Pi = 3.14159265359; // Standard Normal cumulative distribution function double Normal_CDF(const double & x) { double k = 1
Continue ReadingC++: Black Scholes Call Option Delta
// Calculate the Black Scholes European call option Delta double BS_Call_Option_Delta(double S, double K, double r, double v, double T) // Para
Continue ReadingC++: Do While Loop
Start with a value at 0. Loop while value mod 6 is not equal to 0. Each time through the loop, add 1 to the value then print it. The loop must execute
Continue ReadingC++ Graphics
[pt_view id="e8370874e7"]
Continue ReadingC++: Matrix Transposition
Transpose an arbitrarily sized rectangular Matrix. Library: Boost.uBLAS #include <boost/numeric/ublas/matrix.hpp> #include <boost/nu
Continue ReadingC++: Main Step of GOST 28147-89
GOST 28147-89 is a standard symmetric encryption based on a Feistel network. Structure of the algorithm consists of three levels: encryption mode
Continue ReadingC++: Complex Number Arithmetic
A complex number is a number which can be written as "" (sometimes shown as "") where a and b are real numbers and i is the square root of -1. Typical
Continue ReadingC++: Bresenham’s Line Algorithm
Using the data storage type defined on this page for raster graphics images, draw a line given 2 points with the Bresenham's line algorithm. void
Continue ReadingC+: Mandelbrot Set
Generate and draw the Mandelbrot set. Note that there are many algorithms to draw Mandelbrot set and there are many functions which generate it.
Continue ReadingC++: Conway’s Game of Life
The Game of Life is a cellular automaton devised by the British mathematician John Horton Conway in 1970. It is the best-known example of a cellular a
Continue Reading