Test

Aus Wiki1

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
 
(Der Versionsvergleich bezieht 90 dazwischenliegende Versionen mit ein.)
Zeile 1: Zeile 1:
-
<painting width=500 height=456>Name der Zeichnung</painting>
+
<jsxgraph box="jxgbox" width="500" height="500">
 +
var board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-100,100,100,-100], axis:true});
-
<jsxgraph box="jxgbox" width="500" height="500">
+
var r=5;
 +
var p0;
 +
var p0=board.create('point', [0.0, 60.0],{size:5});
 +
 
 +
var c0=board.create('circle', [p0, r], {visible:false});
 +
 
 +
 
 +
for (let i = 0; i < 100; i++) {
 +
 
 +
var lx0=p0.X()-Math.sin((80-i*4)*Math.PI/180)*r;
 +
var ly0=p0.Y()-Math.cos((80-i*4)*Math.PI/180)*r;
 +
var lx1=p0.X()-Math.sin((20-i*4)*Math.PI/180)*r;
 +
var ly1=p0.Y()-Math.cos((20-i*4)*Math.PI/180)*r;
 +
var p0 = board.create('glider', [lx0, ly0,c0], { name: '1', withLabel: false, size:5, fillColor:"blue"});
 +
var p1 = board.create('glider', [lx1, ly1,c0], { name: '1', withLabel: false, size:3});
 +
 
 +
var c0=board.create('circle', [p0, r], {visible:false});
 +
}
-
    var board = JXG.JSXGraph.initBoard("jxgbox", {boundingbox: [-2, 8, 12, -2], axis:true});
 
-
   
 
-
    // Erstelle den linken Wärmetauscher
 
-
    var heatexchanger1 = board.create('curve', [[0,0], [3,3], [6,3], [6,6], [3,6], [0,9], [-3,6], [-3,3], [0,0]], {strokeColor:'#00f', fillColor:'#00f', fillOpacity:0.5});
 
-
   
 
-
    // Erstelle den rechten Wärmetauscher
 
-
    var heatexchanger2 = board.create('curve', [[8,0], [11,3], [14,3], [14,6], [11,6], [8,9], [5,6], [5,3], [8,0]], {strokeColor:'#f00', fillColor:'#f00', fillOpacity:0.5});
 
-
   
 
-
    // Erstelle die Trennwand
 
-
    var wall = board.create('line', [[6,0], [6,9]], {strokeColor:'#000', strokeWidth:4});
 
-
   
 
-
    // Erstelle die Temperaturmesspunkte
 
-
    var temp1 = board.create('glider', [2,2,heatexchanger1], {strokeColor:'#00f', fillColor:'#00f', size:10, name:'T1'});
 
-
    var temp2 = board.create('glider', [10,2,heatexchanger2], {strokeColor:'#f00', fillColor:'#f00', size:10, name:'T2'});
 
-
   
 
-
    // Berechne die Temperaturdifferenz
 
-
    var deltaT = board.create('segment', [temp1, temp2], {strokeColor:'#000', strokeWidth:2});
 
-
    var label = board.create('text', [8, 7, function(){return 'ΔT = ' + Math.abs(temp1.Y() - temp2.Y()).toFixed(1) + ' K';}], {fontSize:18});
 
-
   
 
-
    board.update();
 
-
 
 
</jsxgraph>
</jsxgraph>

Aktuelle Version vom 18:33, 8. Dez. 2025

Persönliche Werkzeuge