Versionsvergleich
Aus ProgrammingWiki
Vergleich: 2017-03-24T09:06:25+00:00 → 2018-05-28T21:23:03+00:00
| + | <language>Javascript</language> |
== Mathematik == | |
=== Satz des Pythagoras === | |
<math>c^2=a^2+b^2</math> | |
== Physik == | |
=== Geschwindigkeit === | |
<math>v=\frac{s}{t}</math> | |
| + | ==== Beispiel ==== |
| + | <code id="58de09fa90298"> |
| + | function Geschwindigkeit(s, t) { |
| + | var v = s / t; |
| + | return v; |
| + | } |
| + | </code> |
| + | Eingabe des Weges in <math>km</math>: Eingabe der Zeit in <math>h</math> |
| + | <run id="58de09fa90381"> |
| + | Geschwindigkeit(10, 0.1); |
| + | </run> |
| + | |
| + | === Dichte === |
| + | <math>\rho=\frac{m}{V}</math> |
| + | ==== Beispiel ==== |
| + | <code id="58de09fa90306"> |
| + | function Dichte(m, V) { |
| + | var rho = m / V; |
| + | return rho; |
| + | } |
| + | </code> |
| + | Eingabe der Masse in <math>g</math>: Eingabe des Volumens in <math>cm^3</math> |
| + | <run id="58de09fa903e6"> |
| + | Dichte(10, 0.1); |
| + | </run> |
| + | |
== Chemie == | |
=== "Klassische" Chemische Elemente === | |
<ul>H = Wasserstoff<ul>Ordnungszahl: 1</ul><ul>Periode: 1</ul><ul>Hauptgruppe: I</ul></ul> | |
<ul>C = Kohlenstoff<ul>Ordnungszahl: 6</ul><ul>Periode: 2</ul><ul>Hauptgruppe: IV</ul></ul> | |
<ul>O = Sauerstoff<ul>Ordnungszahl: 8</ul><ul>Periode: 2</ul><ul>Hauptgruppe: VI</ul></ul> | |
<ul>N = Stickstoff<ul>Ordnungszahl: 7</ul><ul>Periode: 2</ul><ul>Hauptgruppe: V</ul></ul> | |
=== Beispiele für Chemische Formeln === | |
<ul>(Destilliertes) Wasser: <math>H_2O</math></ul> | |
<ul>Sauerstoff: <math>O_2</math></ul> | |
<ul>Kohlenstoffmonoxid: <math>CO</math></ul> | |
<ul>Kohlenstoffdioxid: <math>CO_2</math></ul> | |
<ul>Ethanol: <math>C_2H_6O</math></ul> | |
<ul>Methanol: <math>CH_3OH</math></ul> | |
| + | |
| + | == Informatik == |
| + | === Die Turtle zeichnet einen Kreis === |
| + | |
| + | <canvas w="400" h="300"></canvas> |
| + | |
| + | <code id="5b0c73360320c"> |
| + | function kreis(x, y, r, n) { |
| + | turtle1.move(x, y); |
| + | turtle1.penUp(); |
| + | turtle1.forward(r); |
| + | turtle1.right(90 + 360 / n / 2); |
| + | turtle1.penDown(); |
| + | for (var i = 1; i <= n; i++) { |
| + | turtle1.forward(r * 314 / 50 / n); |
| + | turtle1.right(360 / n); |
| + | } |
| + | turtle1.hide() |
| + | } |
| + | </code> |
| + | |
| + | <run id="5b0c7336032c9"> |
| + | canvas1.clear(); |
| + | kreis(200, 150, 100, 100); |
| + | </run> |