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/18 16:57] 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> 
- 
- 
- 
- 
-====== TEST ====== 
- 
-<HTML> 
-<div id="jxgbox3" class="jxgbox" style="width:350px; height:350px; margin:auto"></div> 
-</HTML> 
- 
-<JS> 
- 
-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: [-0.3,1.7, 6, -0.4], axis:true, grid:false,showCopyright:false, showNavigation:false }); 
-  
- 
- 
- 
- 
-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) 
- }}); 
- 
- 
- 
-var u = 3; 
-var aa = brd.create('slider', [[2, -0.2], [4, -0.2], [0.25, 0.1, 1.3]], {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 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}) 
- 
- 
- 
- 
-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}); 
- 
- 
- 
- 
-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}); 
- 
-</JS> 
- 
-====== 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> 
- 
- 
-====== 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> 
  
hfhm.1629305847.txt.gz · Zuletzt geändert: 2021/08/18 16:57 von torsten.roehl