Versionsvergleich

Aus ProgrammingWiki

Vergleich: 2013-06-04T23:36:04+00:00 → 2014-10-19T21:27:23+00:00

<language>Java</language>
−
== Der Würfel ==
+
== Darstellungen und Berechnungen ==
<table border="0" cellpadding="2">
<tr>
−
<th width="350">Schrägbild</th>
−
<th width="350">Zweitafelprojektion</th>
+
<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>Volumen</th>
−
<th>Oberflächeninhalt</th>
+
<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>
+
<th>$V=a^3$</th>
+
<th>$A_O=6 \cdot a^2$</th>
</tr>
<tr>
−
<td colspan="2" align="center"><br>Beispiel:&nbsp;&nbsp;<math>a=1 \cdot cm</math></td>
+
<td colspan="2" align="center"><br>Beispiel:&nbsp;&nbsp;$a=2,5 \cdot cm$</td>
</tr>
<tr>
<th>
−
<math>V=a^3\\\underline{\underline{V=1 \cdot cm^3}}</math></th>
+
$\begin{eqnarray*}
+
V &=& a^3 \\ 
+
V &=& \underline{\underline{15,625 \cdot cm^3}}
+
\end{eqnarray*}$
+
</th>
<th>
−
<math>A_O=6 \cdot a^2\\\underline{\underline{A_O=6 \cdot cm^2}}</math></th>
+
$\begin{eqnarray*}
+
A_O &=& 6 \cdot a^2 \\
+
A_O &=& \underline{\underline{37,5 \cdot cm^2}}
+
\end{eqnarray*}$
+
</th>
</tr>
<tr>
<td colspan="2" align="center"><br>Berechnungen:</td>
</tr>
<tr>
<td>
−
<code id="51ae79e499905">
+
<code id="51bc1c2e629c0">
public double Volumen(double a) {
−
 double V = a*a*a; 
+
 double V = Math.pow(a, 3); 
 return V;
}
</code>
−
<run id="51ae74d99f83c">
−
Volumen(1);
+
<run id="51bc1b9d3e7f3">
+
Volumen(2.5);
</run>
</td>
<td>
−
<code id="51ae79e499989">
+
<code id="51bc1c2e62a3e">
public double Oberflaeche(double a) {
−
 double Ao = 6*a*a; 
+
 double Ao = 6 * Math.pow(a, 2); 
 return Ao;
}
</code>
−
<run id="51ae74d99f8b5">
−
Oberflaeche(1);
+
<run id="51bc1b9d3e88e">
+
Oberflaeche(2.5);
</run>
</td>
</tr>
</table>