This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var processor2 = function(v) { | |
return ((13*v[1])/v[2])+v[0]+v[3]+12*v[4]-v[5] + ((v[6]*v[7])/v[8]) == 87; | |
} | |
var start_time = Date.now(), | |
total_combinations = 0, | |
pv = [1,2,3,4,5,6,7,8,9], | |
permArr = [], | |
usedChars = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inputs | |
var sex = "male" // "male" || "female" | |
var age = 24 // Age in years | |
var height = 172 // Height in centimeters | |
var weight = 75 // Weight in kilograms | |
var activity_scalar = 1.2 // 1 -> 1.9 (1 being motionless, 1.9 being hugely active) | |
calculateBMR = function(sex, age, weight, height) { | |
var bMR = 0; |