Epidemie und Mathematik

Aus Wiki1

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 11: Zeile 11:
brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-1.1, 1.1, 1.1, -1.1], grid: true, axis:true});
brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-1.1, 1.1, 1.1, -1.1], grid: true, axis:true});
-
//Punkte
 
-
var p1 = brd.createElement('point',p1xy,{name:'A', style:5});
 
-
var p2 = brd.createElement('point',p2xy,{name:'B', style:5});
 
-
var p3 = brd.createElement('point',p3xy,{name:'C', style:5});
 
-
var p4 = brd.createElement('point',p4xy,{name:'D', style:5});
 
-
var p5 = brd.createElement('point',p5xy,{name:'E', style:5});
 
-
data = [];
 
-
datax = [];
 
-
datax[0] = function(){ return p1.X();};
 
-
datax[1] = function(){ return p2.X();};
 
-
datax[2] = function(){ return p3.X();};
 
-
datax[3] = function(){ return p4.X();};
 
-
datax[4] = function(){ return p5.X();};
 
-
data[0]= function(){ return p1.Y();};
 
-
data[1]= function(){ return p2.Y();};
 
-
data[2]= function(){ return p3.Y();};
 
-
data[3]= function(){ return p4.Y();};
 
-
data[4]= function(){ return p5.Y();};
 
-
s = 1;   
 
ir = brd.createElement('slider',[[0.10,-0.2],[0.5,-0.2],[0,2,100]],{name:'Infektionrate pro 100',snapWidth:1});
ir = brd.createElement('slider',[[0.10,-0.2],[0.5,-0.2],[0,2,100]],{name:'Infektionrate pro 100',snapWidth:1});
pit0 = brd.createElement('slider',[[0.10,-0.4],[0.5,-0.4],[0,2,6]],{name:'10^x Anfangsinfizierte',snapWidth:1});
pit0 = brd.createElement('slider',[[0.10,-0.4],[0.5,-0.4],[0,2,6]],{name:'10^x Anfangsinfizierte',snapWidth:1});
Zeile 40: Zeile 21:
-
des0 = brd.createElement('text',[-0.4,0.2,function(){ return it;}],{strokeColor:'black',fontSize:'14px'});     
+
//des0 = brd.createElement('text',[-0.4,0.2,function(){ return it;}],{strokeColor:'black',fontSize:'14px'});     
des1 = brd.createElement('text',[-0.4,0.4,function(){ return "x = -1 bis 1";}],{strokeColor:'black',fontSize:'14px'});  
des1 = brd.createElement('text',[-0.4,0.4,function(){ return "x = -1 bis 1";}],{strokeColor:'black',fontSize:'14px'});  
des2 = brd.createElement('text',[-0.4,0.3,function(){ return "y = -1 bis 1";}],{strokeColor:'black',fontSize:'14px'});  
des2 = brd.createElement('text',[-0.4,0.3,function(){ return "y = -1 bis 1";}],{strokeColor:'black',fontSize:'14px'});  
</jsxgraph>
</jsxgraph>

Version vom 15:28, 29. Mär. 2020

Persönliche Werkzeuge