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
hfhm [2021/08/19 07:56] torsten.roehlhfhm [2024/02/21 15:13] (aktuell) – gelöscht torsten.roehl
Zeile 1: Zeile 1:
-<PRELOAD> 
-# 
-# 
-# 
- /lib/scripts/jqplot/jquery.jqplot.js 
- /lib/scripts/jqplot/jquery.jqplot.css     
- /lib/scripts/jqplot/jquery.min.js         
- /lib/scripts/jqplot/jquery.jqplot.min.js  
-  
-# 
-# jsxgraph 
-# 
-https://cdn.jsdelivr.net/npm/jsxgraph/distrib/jsxgraphcore.js 
-https://cdn.jsdelivr.net/npm/jsxgraph/distrib/jsxgraph.css 
-   
-# 
-# personal  
-# 
-/lib/scripts/src/header.js  
-/lib/scripts/src/pointCharge.js 
- 
-</PRELOAD> 
- 
- 
-====== Halbwertsbreite ====== 
- 
-<HTML> 
-<div id="jxgbox3" class="jxgbox" style="width:350px; height:350px; margin:auto"></div> 
-</HTML> 
- 
-<JS> 
- 
- // Before loading MathJax, it has to be configured something like this: 
-window.MathJax = { 
-  tex: { 
-    inlineMath: [ ['$','$'], ["\\(","\\)"] ], 
-    displayMath: [ ['$$','$$'], ["\\[","\\]"] ], 
-    packages: ['base', 'ams'] 
-  }, 
-  options: { 
-    ignoreHtmlClass: 'tex2jax_ignore', 
-    processHtmlClass: 'tex2jax_process' 
-  } 
-}; 
- 
-// 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.insertTicks = false; 
-JXG.Options.axis.ticks.ticksDistance = 50; 
- 
-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]],  
-   {name:'x',  
-    withLabel: true,  
-    label: {position: 'rtt' , // possible values are 'lft', 'rt', 'top', 'bot' 
-                  offset: [150, -10]   // (in pixels) 
- }}); 
- 
-yaxis = brd.create('axis', [[0, 0], [0, 1]],  
-   {name:'f(x)',  
- withLabel: true,  
- label: { 
-   position: 'rt',  // possible values are 'lft', 'rt', 'top', 'bot' 
-   offset: [-20, 0]   // (in pixels) 
- } 
- });  
- 
-var u = 3; 
-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){ 
-           return Math.exp(-(x-u)*(x-u)/(aa.Value()*aa.Value())) ; 
-           },0,6],{ strokeColor:'red',strokeWidth: 2}); 
- 
-//var minX = -0.832555*aa.Value() + u; 
-//var maxX =  0.832555*aa.Value() + u; 
- 
- 
-var t1 = brd.create('text',[-0.7,1,"f_{max}"]); 
-var t2 = brd.create('text',[-1.1,0.5, '1/2 f_{max}']); 
-var t3 = brd.create('text',[2.1 ,1.5,"Halbwertsbreite"]); 
- 
- 
-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, 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}), 
-    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}), 
-    rect = brd.create('polygon',[p1,p2,p3,p4],{withLines:false, 
-                                               fillColor:'#D3D3D3', 
-                                               hasInnerPoints:false, 
-                                               withLabel:false}); 
- 
- 
-var v1 = brd.create('line',[[function(){return -0.832555*aa.Value() + u;},1.3], 
-                            [function(){return  0.832555*aa.Value() + u;},1.3]],{ 
-    straightFirst:false,  
-    straightLast:false,  
-    lastArrow:true, 
-    strokeColor:'#000000', 
-    firstArrow:true 
-}); 
- 
- 
-brd.create('line',[[0,1],[6,1]], {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}); 
- 
-// reset options 
-JXG.Options.axis.ticks.majorHeight = h1; 
-JXG.Options.axis.ticks.insertTicks = h2; 
-JXG.Options.axis.ticks.ticksDistance = h3; 
- 
-</JS> 
- 
  
hfhm.1629359766.txt.gz · Zuletzt geändert: 2021/08/19 07:56 von torsten.roehl