Test
Aus Wiki1
(Unterschied zwischen Versionen)
Zeile 19: | Zeile 19: | ||
// Erstelle die Temperaturmesspunkte | // Erstelle die Temperaturmesspunkte | ||
var temp1 = brd.create('glider', [2,2,he1], {strokeColor:'#00f', fillColor:'#00f', size:10, name:'T1'}); | var temp1 = brd.create('glider', [2,2,he1], {strokeColor:'#00f', fillColor:'#00f', size:10, name:'T1'}); | ||
- | var temp2 = | + | var temp2 = brd.create('glider', [11,3,he2], {strokeColor:'#f00', fillColor:'#f00', size:10, name:'T2'}); |
// Berechne die Temperaturdifferenz | // Berechne die Temperaturdifferenz | ||
Zeile 25: | Zeile 25: | ||
var label = brd.create('text', [8, 7, function(){return 'ΔT = ' + Math.abs(temp1.Y() - temp2.Y()).toFixed(1) + ' K';}], {fontSize:18}); | var label = brd.create('text', [8, 7, function(){return 'ΔT = ' + Math.abs(temp1.Y() - temp2.Y()).toFixed(1) + ' K';}], {fontSize:18}); | ||
- | + | brd.update(); | |
</jsxgraph> | </jsxgraph> |