Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script language="text/javascript">
- function Rechne() {
- var y4 = 20;
- var x1 = 35 / 2 + 8.5;
- var x2 = 35 / 2 + 17;
- var x3 = 35 / 2 + 25.5;
- var x4 = 35 / 2 + 34;
- var px1 = Math.pow(x1, 2);
- var px2 = Math.pow(x2, 2);
- var px3 = Math.pow(x3, 2);
- var px4 = Math.pow(x4, 2);
- var a = y4 / px4;
- var y1 = a * px1;
- var y2 = a * px2;
- var y3 = a * px3;
- document.write()"Pfeiler-1: " + y1);
- document.write()"Pfeiler-2: " + y2);
- document.write()"Pfeiler-3: " + y3);
- document.write()"a: " + a);
- }
- </script>
- </head>
- <body>
- <input type="button" value="Lösung" onclick="Rechne()" />
- </body>
- </html>
Add Comment
Please, Sign In to add comment