Benutzer-Werkzeuge

Webseiten-Werkzeuge


hfhm

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Letzte ÜberarbeitungBeide Seiten der Revision
hfhm [2021/08/18 18:24] torsten.roehlhfhm [2022/07/13 17:59] torsten.roehl
Zeile 1: Zeile 1:
 +[[http://wiki.linux-astronomie.de/data/html/fwhm.html|Externer Link]]
 <PRELOAD> <PRELOAD>
 # #
 # #
 # #
- /lib/scripts/jqplot/jquery.jqplot.js +/lib/scripts/jqplot/jquery.jqplot.js 
- /lib/scripts/jqplot/jquery.jqplot.css     +/lib/scripts/jqplot/jquery.jqplot.css     
- /lib/scripts/jqplot/jquery.min.js         +/lib/scripts/jqplot/jquery.min.js         
- /lib/scripts/jqplot/jquery.jqplot.min.js  +/lib/scripts/jqplot/jquery.jqplot.min.js  
- +
 # #
 # jsxgraph # jsxgraph
 # #
-https://cdn.jsdelivr.net/npm/jsxgraph/distrib/jsxgraphcore.js +https://jsxgraph.org/distrib/jsxgraphcore.js 
-https://cdn.jsdelivr.net/npm/jsxgraph/distrib/jsxgraph.css +###https://cdn.jsdelivr.net/npm/jsxgraph/distrib/jsxgraphcore.js 
-  +##https://jsxgraph.org/distrib/jsxgraph.css 
 +https://cdn.jsdelivr.net/npm/jsxgraph/distrib/jsxgraph.css  
 # #
 # personal  # personal 
 # #
-/lib/scripts/src/header.js  
-/lib/scripts/src/pointCharge.js 
- 
 </PRELOAD> </PRELOAD>
  
 +====== Halbwertsbreite ======
  
- +<WRAP center round tip 55%> 
- +Linklisten veralten sehr schnell. Meistens sind die  Inhalte noch vorhanden, aber die Seite ist umgezogen, dann hilft es, anhand der Informationen die im Namen des Links stecken, nach der neuen URL zu suchen.  
-====== TEST ======+</WRAP>
  
 <HTML> <HTML>
 <div id="jxgbox3" class="jxgbox" style="width:350px; height:350px; margin:auto"></div> <div id="jxgbox3" class="jxgbox" style="width:350px; height:350px; margin:auto"></div>
 </HTML> </HTML>
 +
  
 <JS> <JS>
 +
  // Before loading MathJax, it has to be configured something like this:  // Before loading MathJax, it has to be configured something like this:
 window.MathJax = { window.MathJax = {
Zeile 45: Zeile 47:
 }; };
  
- +// save default options 
- +var h1 = JXG.Options.axis.ticks.majorHeight; 
- +var h2 = JXG.Options.axis.ticks.insertTicks; 
- +var h3 = JXG.Options.axis.ticks.ticksDistance; 
- +// modify
- +
 JXG.Options.axis.ticks.majorHeight = 60; JXG.Options.axis.ticks.majorHeight = 60;
 JXG.Options.axis.ticks.insertTicks = false; JXG.Options.axis.ticks.insertTicks = false;
 JXG.Options.axis.ticks.ticksDistance = 50; JXG.Options.axis.ticks.ticksDistance = 50;
  
-var brd = JXG.JSXGraph.initBoard('jxgbox3', {boundingbox: [-1.4,1.7, 6, -0.4], axis:true, grid:false,showCopyright:false, showNavigation:false, useMathJax: true });+var brd = JXG.JSXGraph.initBoard('jxgbox3', {boundingbox: [-1.4,1.7, 6, -0.4], 
 +                                axis:false, 
 +                                
 +                                showCopyright:false, 
 +                                showNavigation:false, 
 +                                useMathJax: true });
    
- 
- 
- 
  
 xaxis = brd.create('axis', [[0, 0], [1,0]],  xaxis = brd.create('axis', [[0, 0], [1,0]], 
Zeile 77: Zeile 79:
  }  }
  });   });
- 
  
 var u = 3; var u = 3;
-var aa = brd.create('slider', [[2, -0.2], [4, -0.2], [0.25, 0.85, 1.4]], {name:'    FWHM', snapWidth: 0.1});+var aa = brd.create('slider', [[1.4, -0.2], [3.6, -0.2], [0.25, 0.85, 1.4]], {name:'    FWHM', snapWidth: 0.1});
  
 var    ff = brd.create('functiongraph',[function(x){ var    ff = brd.create('functiongraph',[function(x){
Zeile 86: Zeile 87:
            },0,6],{ strokeColor:'red',strokeWidth: 2});            },0,6],{ strokeColor:'red',strokeWidth: 2});
  
-var minX = -0.832555*aa.Value() + u; +//var minX = -0.832555*aa.Value() + u; 
-var maxX =  0.832555*aa.Value() + u;+//var maxX =  0.832555*aa.Value() + u;
  
- 
-//var pMin1 = brd.create('point', function(){return  -0.832555*aa.Value() + u;},  0   ],{trace:false}) 
-//var pMin2 = brd.create('point', function(){return  -0.832555*aa.Value() + u;},  1   ],{trace:false}) 
  
 var t1 = brd.create('text',[-0.7,1,"f_{max}"]); var t1 = brd.create('text',[-0.7,1,"f_{max}"]);
Zeile 102: Zeile 100:
 brd.create('line',[[ function(){return  0.832555*aa.Value() + u;},0],[ function(){return  0.832555*aa.Value() + u;},1.4]], {strokeColor:'#808080',straightFirst:false, straightLast:false, strokeWidth:1,dash:2}); brd.create('line',[[ function(){return  0.832555*aa.Value() + u;},0],[ function(){return  0.832555*aa.Value() + u;},1.4]], {strokeColor:'#808080',straightFirst:false, straightLast:false, strokeWidth:1,dash:2});
  
-var p1 = brd.create('point', [function(){return  -0.832555*aa.Value() + u;},0], {name:'x_1',withLabel:true,size:0}),+var p1 = brd.create('point', [function(){return  -0.832555*aa.Value() + u;},0], {name:'x_1',withLabel:true,size:0, label:{  
 +         offset: [0, 0], 
 +         anchorX: 'middle', 
 +         anchorY: 'top', 
 +        }}),
     p2 = brd.create('point', [function(){return  -0.832555*aa.Value() + u;},1.4], {withLabel:false,size:0}),     p2 = brd.create('point', [function(){return  -0.832555*aa.Value() + u;},1.4], {withLabel:false,size:0}),
-    p4 = brd.create('point', [function(){return  0.832555*aa.Value() + u;},0], {withLabel:false,size:0}),+    p4 = brd.create('point', [function(){return  0.832555*aa.Value() + u;},0], {name:'x_2',withLabel:true,size:0
 +     label:{  
 +         offset: [0, 0], 
 +         anchorX: 'middle', 
 +         anchorY: 'top', 
 +        }}), 
 +  
     p3 = brd.create('point', [function(){return  0.832555*aa.Value() + u;},1.4], {withLabel:false,size:0}),     p3 = brd.create('point', [function(){return  0.832555*aa.Value() + u;},1.4], {withLabel:false,size:0}),
     rect = brd.create('polygon',[p1,p2,p3,p4],{withLines:false,     rect = brd.create('polygon',[p1,p2,p3,p4],{withLines:false,
Zeile 120: Zeile 128:
     firstArrow:true     firstArrow:true
 }); });
- 
  
  
Zeile 126: Zeile 133:
 brd.create('line',[[0,0.5],[6,0.5]], {strokeColor:'#808080',straightFirst:false, straightLast:false, strokeWidth:1,dash:2}); brd.create('line',[[0,0.5],[6,0.5]], {strokeColor:'#808080',straightFirst:false, straightLast:false, strokeWidth:1,dash:2});
  
-</JS>+// reset options 
 +JXG.Options.axis.ticks.majorHeight = h1; 
 +JXG.Options.axis.ticks.insertTicks = h2; 
 +JXG.Options.axis.ticks.ticksDistance = h3;
  
-====== TEST ====== 
- 
-<HTML> 
-<div id="jxgbox" class="jxgbox" style="width:300px; height:300px; margin:auto"></div> 
-</HTML> 
-<JS> 
-JXG.Options.axis.ticks.insertTicks = true; 
- var board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-4, 4, 4, -4], axis:true,  showCopyright:false, showNavigation:false }); 
- var graph1 = board.create('functiongraph', [function(x){return Math.sin(x);}, -Math.PI, Math.PI],{name:'sin(x)', withLabel:true}); 
- var graph2 = board.create('functiongraph', [function(x){return x*x-2;}, -3, 3],{name:'x^2 - 2', withLabel:true, strokeColor:'red'}); 
 </JS> </JS>
  
- 
-====== TEST ====== 
-<HTML> 
-<div id="jxgbox1" class="jxgbox" style="width:300px; height:300px; margin:auto"></div> 
-</HTML> 
-<JS> 
- var board = JXG.JSXGraph.initBoard('jxgbox1', {boundingbox: [-8, 8, 8, -8], axis:true,  showCopyright:false, showNavigation:false }); 
- var a = board.create('slider', [[-7.5, -3], [-4,-3], [-3, 1, 3]], {name:'a', snapWidth: 0.1}); 
- var c = board.create('slider', [[-7.5, -5], [-4,-5], [-1, 1, 4]], {name:'c',snapWidth: 1}); 
- var graph2 = board.create('functiongraph', [function(x){ 
-              return a.Value()*x*x + c.Value();}, -3, 3]); 
- 
- var text = board.create('text',[-6,6,function(){return a.Value().toFixed(2)+'\\times x^2'+c.Value()}]); 
-</JS>