daily pastebin goal
24%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <script language="text/javascript">
  4. function Rechne() {
  5. var y4 =  20;
  6. var x1 = 35 / 2 + 8.5;
  7. var x2 = 35 / 2 + 17;
  8. var x3 = 35 / 2 + 25.5;
  9. var x4 = 35 / 2 + 34;
  10. var px1 = Math.pow(x1, 2);
  11. var px2 = Math.pow(x2, 2);
  12. var px3 = Math.pow(x3, 2);
  13. var px4 = Math.pow(x4, 2);
  14. var a = y4 / px4;
  15. var y1 = a * px1;
  16. var y2 = a * px2;
  17. var y3 = a * px3;
  18. document.write()"Pfeiler-1: " + y1);
  19. document.write()"Pfeiler-2: " + y2);
  20. document.write()"Pfeiler-3: " + y3);
  21. document.write()"a: " + a);
  22. }
  23. </script>
  24. </head>
  25. <body>
  26. <input type="button" value="Lösung" onclick="Rechne()" />
  27. </body>
  28. </html>
RAW Paste Data
Top