|
|
Zeile 69: |
Zeile 69: |
| <body> | | <body> |
| | | |
− | <form id="myForm">
| + | |
| | | |
| <!-- Resetbutton, Checkbox und Formel --> | | <!-- Resetbutton, Checkbox und Formel --> |
− | <button class="button1" style="font-size:0.750em" onclick="zurueck()">Reset</button>
| + | |
− | <p><span class="separate" style="position:absolute; top:123px; left:454px; font-family:arial; font-size:0.750em;">mit Gitter<input name="gridbox" id="gridbox" type="checkbox" onclick="showgrid();" checked="checked"></span></p>
| |
| | | |
| <div id="box2" class="jxgbox" style="width:500px; height:100px; float:top; margin:-10px 20px 100px 0px;"></div> | | <div id="box2" class="jxgbox" style="width:500px; height:100px; float:top; margin:-10px 20px 100px 0px;"></div> |
Zeile 90: |
Zeile 89: |
| yaxis = brd1.create('axis', [[0, 0], [0, 1]], {name:'<I>x(t)</I>', withLabel:true, label:{position:'rt', offset:[10, -5]}}); | | yaxis = brd1.create('axis', [[0, 0], [0, 1]], {name:'<I>x(t)</I>', withLabel:true, label:{position:'rt', offset:[10, -5]}}); |
| | | |
− | //Festlegen der Schieberegler
| |
− | a = brd2.create('slider',[[-0.7,1.5],[3,1.5],[0,0.5,1]], {suffixlabel:' <I>A</I>_1=', unitLabel: 'V', snapWidth:0.01}),
| |
− | b = brd2.create('slider',[[-0.7,0.5],[3,0.5],[0,1,10]], {suffixlabel:'<I>f</I>_1=', unitLabel: 'kHz', snapWidth:0.1}),
| |
− | c = brd2.create('slider',[[-0.7,-0.5],[3,-0.5],[-180,0,180]], {suffixlabel:'<I>ϕ</I>_1=', unitLabel: 'Grad', snapWidth:5}),
| |
− | d = brd2.create('slider',[[6,1.5],[9.7,1.5],[0,0.5,1]], {suffixlabel:'<I>A</I>_2=', unitLabel: 'V', snapWidth:0.01}),
| |
− | e = brd2.create('slider',[[6,0.5],[9.7,0.5],[0,2,10]], {suffixlabel:'<I>f</I>_2=', unitLabel: 'kHz', snapWidth:0.1}),
| |
− | g = brd2.create('slider',[[6,-0.5],[9.7,-0.5],[-180,90,180]], {suffixlabel:'<I>ϕ</I>_2=',unitLabel: 'Grad', snapWidth:5}),
| |
− | t = brd2.create('slider',[[-0.7,-1.5],[3,-1.5],[0,0,10]], {suffixlabel:'<I>t</I>=', snapWidth:0.2}),
| |
| | | |
| //Definition der Funktion | | //Definition der Funktion |
| signaldarstellung = brd1.create('functiongraph',[function(x){ | | signaldarstellung = brd1.create('functiongraph',[function(x){ |
− | return (a.Value()*Math.cos(2*Math.PI*b.Value()*x-2*Math.PI*c.Value()/360)+d.Value()*Math.cos(2*Math.PI*e.Value()*x-2*Math.PI*g.Value()/360)) | + | return (x*x) |
| }], {strokeColor: "red"}); | | }], {strokeColor: "red"}); |
| | | |
| | | |
| </script> | | </script> |
− | </form>
| + | |
| | | |
| | | |