Kreisfläche

Aus Wiki1

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 11: Zeile 11:
var brd = JXG.JSXGraph.initBoard('box', {boundingbox: [x_min,y_max,x_max,y_min]});
var brd = JXG.JSXGraph.initBoard('box', {boundingbox: [x_min,y_max,x_max,y_min]});
 +
//Eingabe Volumenstrom
var pv0 = brd.create('point',[0,y_min+20*dy],{fixed:true,visible:true,name:"Volumenstrom m3/h"});
var pv0 = brd.create('point',[0,y_min+20*dy],{fixed:true,visible:true,name:"Volumenstrom m3/h"});
var pv1 = brd.create('point',[0+20*dx,y_min+20*dy],{fixed:false,visible:true,name:""});
var pv1 = brd.create('point',[0+20*dx,y_min+20*dy],{fixed:false,visible:true,name:""});
var lv= brd.create('line',[pv0,pv1],{straightFirst:false, straightLast:false,visible:true});
var lv= brd.create('line',[pv0,pv1],{straightFirst:false, straightLast:false,visible:true});
 +
var V_dot=function()
 +
{
 +
var v_val=Math.abs(pv1.X()-pv0.X());
 +
var v_ex=(pv1.Y()-pv0.Y())/10;
 +
return Math.round(1000*Math.pow(v_val,v_ex))/1000;
 +
}
 +
brd.create('text',[pv0.X(),pv0.Y()-5*dy,V_dot],{});
 +
//Eingabe Dichte
var pd0 = brd.create('point',[0,y_min+40*dy],{fixed:true,visible:true,name:"Dichte kg/m3"});
var pd0 = brd.create('point',[0,y_min+40*dy],{fixed:true,visible:true,name:"Dichte kg/m3"});
var pd1 = brd.create('point',[0+20*dx,y_min+40*dy],{fixed:false,visible:true,name:""});
var pd1 = brd.create('point',[0+20*dx,y_min+40*dy],{fixed:false,visible:true,name:""});
Zeile 26: Zeile 35:
  brd.create('text',[pd0.X(),pd0.Y()-5*dy,Den],{});
  brd.create('text',[pd0.X(),pd0.Y()-5*dy,Den],{});
-
+
//Eingabe Kreis
var p0 = brd.create('point',[0,0],{fixed:true,visible:true});
var p0 = brd.create('point',[0,0],{fixed:true,visible:true});
var p1 = brd.create('point',[x_max/2,0],{name:'',visible:true});
var p1 = brd.create('point',[x_max/2,0],{name:'',visible:true});
Zeile 37: Zeile 46:
return "D="+Math.round(1000*d)/1000+"  A="+Math.round(1000*A)/1000;
return "D="+Math.round(1000*d)/1000+"  A="+Math.round(1000*A)/1000;
  }
  }
-
 
-
var V_dot=function()
 
-
{
 
-
var v_val=Math.abs(pv1.X()-pv0.X());
 
-
var v_ex=(pv1.Y()-pv0.Y())/10;
 
-
return Math.round(1000*Math.pow(v_val,v_ex))/1000;
 
-
}
 
-
 
-
 
var Velo=function()
var Velo=function()
Zeile 66: Zeile 66:
brd.create('text',[p1.X()-dx*20,p1.Y()-10*dy,Velo],{});
brd.create('text',[p1.X()-dx*20,p1.Y()-10*dy,Velo],{});
brd.create('text',[p1.X()-dx*20,p1.Y()-15*dy,Mass],{});
brd.create('text',[p1.X()-dx*20,p1.Y()-15*dy,Mass],{});
-
brd.create('text',[pv0.X(),pv0.Y()-5*dy,V_dot],{});
+
 

Version vom 17:24, 8. Dez. 2013

Mit Hilfe des Programmpakets JSXGraph (siehe http://jsxgraph.uni-bayreuth.de/wp/) können komplexe, interaktive Grafiken nur mit Hilfe von JavaScript in Webseiten integriert werden. Details unter http://jsxgraph.uni-bayreuth.de/docs/symbols/Circle.html

Persönliche Werkzeuge