// Sspecific Speed Pump 

function SpecificSpeedPump(rpm, q, h){
	this.rpm = rpm;
	this.q = q;
	this.h = h;
}

// returns specific speed
SpecificSpeedPump.prototype.speed = function(){
	return Math.round(this.rpm * Math.sqrt(this.q) / Math.pow(this.h,0.75)); 
}

// returns input values
SpecificSpeedPump.prototype.inputValues = function(){
	var msg = this.rpm + " " + this.q + " " + this.h;
	return msg;
}

// Copyright engineeringtoolbox.com