So i have a simple problem with a complex solution. I need some help figuring out how to convert this:
T = m * K * log(ywr * (Tegg - Twater) / (Tyolk - Twater))
- m = 56 – Grade A eggs mass in grams.
- K = ?? – Thermal properties of egg find out how to represent K in JS
- Tegg = -15.556 – Temperature of egg from fridge in Celsius
- Twater = 212 – Temperature of boiling water at sea level in Fahrenheit
- Tyolk = .69 – Temperature (.69a, tcooked)
- ywr = .76 – Ratio of yolks to whites
... into JavaScript code. I have done the easy parts already but I have no idea how to even start to translate the thermal conductivity properties of an egg into JS. I might be going down the wrong path or misunderstood something due to my lack of knowledge in physics, so I have included the link to the pdf that I am referencing.
const m = 56 // in grams
const K = // thermal properties of egg find out how to represent K in JS
const T_egg = -15.556 // celsius
const Twater = 212 // @sealevel change this to a mutable variable
const Tyolk = .69 // T(.69a, tcooked)
const ywr = .76 // ratio of yolks to whites
function TminTwater(T, Twater, T_egg){
if (T || Twater || T_egg != null ){
const d = (T_egg - Twater)
const e = (T - Twater)
const f = (d / e)
const g = ywr * f
return g
} else console.log('error at function TminTwater')
}
// T = m * K * LOG(ywr * (Tegg - Twater) / (Tyolk - Twater))
function solution(TminTwater, K , m){
}