Versionsvergleich
Aus ProgrammingWiki
Vergleich: 2016-03-10T08:42:54+00:00 → 2016-05-08T16:37:18+00:00
| − | <language>Java</language> |
| + | <language>Javascript</language> |
== Darstellungen und Berechnungen == | |
<table border="0" cellpadding="4"> | |
<tr> | |
<th width="350"><h3>Schrägbild</h3></th> | |
<th width="350"><h3>Zweitafelprojektion</h3></th> | |
</tr> | |
<tr> | |
<th>[[Bild:Würfel_Schrägbild1.gif]]</th> | |
<th>[[Bild:Würfel_Zweitafel1.gif]]</th> | |
</tr> | |
<tr> | |
<th><h3>Volumen</h3></th> | |
<th><h3>Oberflächeninhalt</h3></th> | |
</tr> | |
<tr> | |
<th><math>V=a^3</math></th> | |
<th><math>A_O=6 \cdot a^2</math></th> | |
</tr> | |
<tr> | |
<td colspan="2" align="center"><br>Beispiel: <math>a=2,5 \cdot cm</math></td> | |
</tr> | |
<tr> | |
<th> | |
<math>V=a^3\\\underline{\underline{V=15,625 \cdot cm^3}}</math></th> | |
<th> | |
<math>A_O=6 \cdot a^2\\\underline{\underline{A_O=37,5 \cdot cm^2}}</math></th> | |
</tr> | |
<tr> | |
<td colspan="2" align="center"><br>Berechnungen:</td> | |
</tr> | |
<tr> | |
<td> | |
| − | <code id="56e1338e72830"> |
| − | public double Volumen(double a) { |
| − | double V = Math.pow(a, 3); |
| + | <code id="572f6b3d855f7"> |
| + | function Volumen(a) { |
| + | var V = Math.pow(a, 3); |
return V; | |
} | |
</code> | |
| − | <run id="56e1338e7294a"> |
| + | <run id="572f6b3d85718"> |
Volumen(2.5); | |
</run> | |
</td> | |
<td> | |
| − | <code id="56e1338e728b7"> |
| − | public double Oberflaeche(double a) { |
| − | double Ao = 6 * Math.pow(a, 2); |
| + | <code id="572f6b3d85696"> |
| + | function Oberflaeche(a) { |
| + | var Ao = 6 * Math.pow(a, 2); |
return Ao; | |
} | |
</code> | |
| − | <run id="56e1338e729c9"> |
| + | <run id="572f6b3d85779"> |
Oberflaeche(2.5); | |
</run> | |
</td> | |
</tr> | |
</table> |