On lines 7–8, we create two std::vectors and initialise them with values. On line 10, we swap the contents of the two std::vectors using the std:
Continue ReadingC++: Benford’s Law
Benford's law, also called the first-digit law, refers to the frequency distribution of digits in many (but not all) real-life sources of data. In thi
Continue ReadingC++: Brownian Tree
Generate and draw a Brownian Tree. A Brownian Tree is generated as a result of an initial seed, followed by the interaction of two processes.
Continue ReadingC++: Bulls and Cows
This is an old game played with pencil and paper that was later implemented on computer. The task is for the program to create a four digit random
Continue ReadingC++: Concurrent Computing
Using either native language concurrency syntax or freely available libraries write a program to display the strings "Enjoy" "Rosetta" "Code", one str
Continue ReadingInnovative Ways of Visualizing Financial Data
Finance is drowning in a deluge of data. Humans are not very good at comprehending large amounts of data. One way out may be visualization. Traditi
Continue ReadingC++: CSV Data Manipulation
CSV spreadsheet files are suitable for storing tabular data in a relatively portable way. The CSV format is flexible but somewhat ill-defined. For pre
Continue ReadingC++: Monte Carlo Methods
A Monte Carlo Simulation is a way of approximating the value of a function where calculating the actual value is difficult or impossible. It uses ran
Continue ReadingC++ String Algorithms
[pt_view id="ce50e34ece"]
Continue ReadingC++: Black Scholes Call Option Vega
// Calculate the Black Scholes European call option Vega double BS_Call_Option_Vega(double S, double K, double r, double v, double T) // Parame
Continue Reading




