Probability Poisson Distribution

// Probability.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include 
#include 
using namespace std;

double Success(double, int);

int main()
{
	double q;
	int z;

	std::cout << "Please enter a probability value: "; 	std::cin >> q;
	std::cout << "Please enter a Z-value: "; 	std::cin >> z;
	cout << Success(q, z);

	system("PAUSE");
	return 0;

}

double Success(double q, int z)
{

	double p = 1.0 - q;
	double lambda = z * (q / p);
	double sum = 1.0;
	int i, k;

	for (k = 0; k <= z; k++)
	{
		double poisson = exp(-lambda); // e^lambda
		for (i = 1; i <= k; i++)
			poisson * lambda / i;   // lambda^1,2,3,4 divided by K!(1,2,3,4...)
		sum -= poisson * (1 - pow(q / p, z - k));
	}
	return sum;
}

C++ Port 4.8.1.
Demonstration purposes.

G2

The G1 project has been suspended due to structural, and financial reasons. We are now working on G2:

Instead of using 2 40mm EDF motors, we are going to use just 1 60mm EDF due to the limited space within the fuselage. Situation is not helped by the gigantic battery that we will be using.

not modeled yet: wings, intake ducts, exhaust opening/duct, V-tail receiver, and servos

Screen Shot 2013-08-02 at 12.37.42 AM Screen Shot 2013-08-02 at 12.37.33 AM Screen Shot 2013-08-02 at 12.37.24 AM Screen Shot 2013-08-02 at 12.37.51 AM