<HTML> <HEAD> <TITLE>......</TITLE> <HEAD> <SCRIPT language='JavaScript'> function set() { t = 0.0; dt = 0.03; v0 = 10.0; h0 = 2.0; g = 9.8; a = 5.0; b = 10.0; c = -30.0; d = 150.0; xx = 0.0; yy = h0; i = a*xx + b; j = c*yy + d; document.Links.EV.value = Math.round(i); document.Links.VV.value = Math.round(j); } function Start() { document.Links.EV.value = 50; document.Links.VV.value = 55; document.Links.f.value = 0.5; document.Links.rentekosten.value = 300; document.Links.TV.value = 90; document.Links.RTV.value = 180; document.Links.RVV.value = 120; RVVx = 50; REVv = 67; REVvx = 5; REVn = 4; winstsaldoVoor = 23; winsto = 56; winstf = 67; winstsaldoNa = 56; } function CalcEnPlot() { EV = parseFloat(document.Links.EV.value); VV = parseFloat(document.Links.VV.value); f = 0.5; owinst = 170; rentekosten = 150; TV = EV + VV; RTV = owinst*100/TV; RVV = rentekosten*100/VV; RVVx = rentekosten*100/VV; REVv = RTV + (RTV-RVV)*(VV/EV); REVvx = owinst*100/EV; REVn = REVv*(1.0-f); winstsaldoVoor = owinst - rentekosten; winsto = winstsaldoVoor*(1-f); winstf = winstsaldoVoor*f; winstsaldoNa = winsto; document.Rechts.TV.value = TV; document.Rechts.RTV.value = RTV; document.Rechts.RVV.value = RVV; document.Rechts.REVn.value = REVn; } </SCRIPT> <BODY> xxxx<BR> xxxx<BR> <FORM NAME="Links"> <INPUT type="button" VALUE="Start" ONCLICK="Start()"> <INPUT type="button" VALUE="set" ONCLICK="set()"> <INPUT type="button" VALUE="xxx" ONCLICK="CalcEnPlot()"> <INPUT type="button" VALUE="run" ONCLICK="run()"> <INPUT TYPE="TEXT" NAME="x" VALUE="" SIZE="3"> xx <INPUT TYPE="TEXT" NAME="x" VALUE="" SIZE="3"> xx <INPUT TYPE="TEXT" NAME="x" VALUE="" SIZE="3"> xx <INPUT TYPE="TEXT" NAME="x" VALUE="" SIZE="3"> xx <INPUT TYPE="TEXT" NAME="x" VALUE="" SIZE="3"> xx <INPUT TYPE="TEXT" NAME="x" VALUE="" SIZE="3"> xx <INPUT TYPE="TEXT" NAME="x" VALUE="" SIZE="3"> xx </FORM> <FORM NAME="Rechts"> y1: <INPUT TYPE="TEXT" NAME="yy" VALUE="" SIZE="3"> y2: <INPUT TYPE="TEXT" NAME="yy" VALUE="" SIZE="3"> y3: <INPUT TYPE="TEXT" NAME="yy" VALUE="" SIZE="3"> y4: <INPUT TYPE="TEXT" NAME="yy" VALUE="" SIZE="3"> y5: <INPUT TYPE="TEXT" NAME="yy" VALUE="" SIZE="3"> </FORM> xxxx<BR> xxxx<BR> xxxx<BR> xxxx<BR> xxxx<BR> xxxx<BR> </BODY> </HTML>