function roundit(which){ return Math.round(which*10000)/10000 } function cmanthropometrie(){ with (document.biometrie){ feet.value = roundit(cm.value/30.48); inch.value = roundit(cm.value/2.54); yard.value = roundit(cm.value/91.44); m.value = roundit(cm.value/100); } } function inchanthropometrie(){ with (document.biometrie){ cm.value = roundit(inch.value*2.54); feet.value = roundit(inch.value/12); yard.value = roundit(inch.value/36); m.value = roundit(inch.value*0.0254); } } function feetanthropometrie(){ with (document.biometrie){ cm.value = roundit(feet.value*30.48); inch.value = roundit(feet.value*12); yard.value = roundit(feet.value/3); m.value = roundit(feet.value*0.3048); } } function yardanthropometrie(){ with (document.biometrie){ cm.value = roundit(yard.value*91.44); inch.value = roundit(yard.value*36); feet.value = roundit(yard.value*3); m.value = roundit(yard.value*0.9144); } } function manthropometrie(){ with (document.biometrie){ cm.value = roundit(m.value*100); feet.value = roundit(m.value/0.3048); inch.value = roundit(m.value/0.0254); yard.value = roundit(m.value/0.9144); } } function kganthropometrie(){ with (document.biometrie){ gr.value = roundit(kg.value*1000); oz.value = roundit(kg.value/0.028349); lb.value = roundit(kg.value/0.453592); } } function granthropometrie(){ with (document.biometrie){ kg.value = roundit(gr.value/1000); oz.value = roundit(gr.value/28.349); lb.value = roundit(gr.value/453.592); } } function ozanthropometrie(){ with (document.biometrie){ kg.value = roundit(oz.value*0.028349); gr.value = roundit(oz.value*28.349); lb.value = roundit(oz.value/16); } } function lbanthropometrie(){ with (document.biometrie){ kg.value = roundit(lb.value*0.453592); gr.value = roundit(lb.value*453.592); oz.value = roundit(lb.value*16); } } function surfaceanthropometrie(){ with (document.biometrie){ surface1.value = roundit(0.007184 * Math.pow(cm.value,0.725)*Math.pow(kg.value,0.425)); surface2.value = roundit(0.0235 * Math.pow(cm.value,0.42246)*Math.pow(kg.value,0.51456)); surface3.value = roundit(Math.pow(cm.value*kg.value/3600,5*Math.pow(10,-1))); surface4.value = roundit(0.024265 * Math.pow(cm.value,0.3964)*Math.pow(kg.value,0.5378)); surface5.value = roundit((kg.value*4+7)/(kg.value*1 +90)); surface6.value = roundit(0.0003207*Math.pow(cm.value,0.3)*Math.pow(gr.value,(0.7285-0.0188*Math.log(gr.value)/Math.log(10)))); imc.value = roundit((kg.value)/((cm.value/100)*(cm.value/100))); } } function pmanthropometrie(){ with (document.biometrie){ poidsmaigre1.value = roundit(1.10 * kg.value - 128 * Math.pow(kg.value,2)/Math.pow(cm.value,2)); poidsmaigre2.value = roundit(1.07 * kg.value - 148 * Math.pow(kg.value,2)/Math.pow(cm.value,2)); poidsmaigre3.value = roundit(0.32810 * kg.value + 0.33929 * cm.value - 29.5996); poidsmaigre4.value = roundit(0.29569 * kg.value + 0.41813 * cm.value - 43.2933); } } function eauanthropometrie(){ with (document.biometrie){ eautotale1.value = roundit(0.296785 * kg.value + 0.194786 * cm.value - 14.012934); eautotale2.value = roundit(0.183809 * kg.value + 0.34454 * cm.value - 35.270121); eautotale3.value = roundit(0.3362 * kg.value + 0.1074 * cm.value - 0.09156 * age.value + 2.447); eautotale4.value = roundit(0.2466 * kg.value + 0.1069 * cm.value - 2.097); } } function pianthropometrie(){ with (document.biometrie){ poidsideal1.value = roundit(cm.value - 100 - (cm.value - 150)/4); poidsideal2.value = roundit(cm.value - 100 - (cm.value - 150)/2); poidsideal3.value = roundit(50 + 2.3 * (inch.value - 60)); poidsideal4.value = roundit(45.5 + 2.3 * (inch.value - 60)); poidsideal5.value = roundit(0.4536 * (inch.value * 4.064 - 130.736)); poidsideal6.value = roundit(0.4536 * (inch.value * 3.636 - 111.621)); poidsideal7.value = roundit(0.4536 * ((5.2878 * inch.value) - (0.123939 * Math.pow(inch.value,2)) + (0.00128936 * Math.pow(inch.value,3)) - 59.6035)); poidsideal8.value = roundit(0.4536 * ((6.93728 * inch.value) - (0.171703 * Math.pow(inch.value,2)) + (0.001726 * Math.pow(inch.value,3)) - 77.55796)); poidsideal9.value = roundit(50 + (cm.value - 150)/4 + (age.value - 20)/4); } } function ageanthropometrie(){ with (document.biometrie){ age.value = roundit(age.value); } } function deranthropometrie(){ with (document.biometrie){ der1.value = roundit(13.7516 * kg.value + 500.33 * m.value - 6.7550 * age.value + 66.473); der2.value = roundit(9.5634 * kg.value + 184.96 * m.value - 4.6756 * age.value + 655.0955); der3.value = roundit(13.707 * kg.value + 492.3 * m.value - 6.673 * age.value + 77.607); der4.value = roundit(9.740 * kg.value + 172.9 * m.value - 4.737 * age.value + 667.051); der9.value = roundit(1.083 * Math.pow(kg.value,0.48) * Math.pow(m.value,0.50) * Math.pow(age.value,-0.13) * (1000/4.1855)); der10.value = roundit(0.963 * Math.pow(kg.value,0.48) * Math.pow(m.value,0.50) * Math.pow(age.value,-0.13) * (1000/4.1855)); der5.value = roundit(der9.value * 1.375); der6.value = roundit(der10.value * 1.375); der7.value = roundit(der9.value * 1.55); der8.value = roundit(der10.value * 1.55); } }