04-26-2011, 05:52 AM
Macro Macro1570
;function calc_airdensity() {
;
;var temp , pressure , humidity , altitude , spm ;
;
;spm_calc = 0;
;
;temp = eval(document.airdensity_form.Tf.value);
double temp pressure humidity altitude spm spm_calc
temp=10.5 ;;assign some values to the variables
;...
;Am = altitude * 12 * 2.54 / 100
double Am = altitude * 12 * 2.54 / 100
;...
;convert Math.exp(-Am / 7000) to exp(-Am/7000)
;...
;convert Math.log(E) to log(E)