1import{_ as A,r as p,aE as B,b as V,aP as w,e as U,f as F,aJ as l,aS as x,aL as T,aT as _,a_ as y}from"./B7W8xUR6.js";const D={class:"tl-solution"},I={class:"control-panel"},L={class:"slider-container"},N={class:"slider-container"},R={class:"slider-group"},W={class:"slider-container half"},j={class:"slider-container half"},E=1,q=1,C={__name:"TlSolution",setup(J){const r=p(.5),u=p(20),c=p(.5),o=p(0),v=B(()=>({real:c.value*Math.cos(o.value*Math.PI/180),imag:c.value*Math.sin(o.value*Math.PI/180)})),S=p(null);function k(){const f=S.value,e=f.getContext("2d"),a=f.width,b=f.height,s=b/2,g=b/4;e.fillStyle="#fff",e.fillRect(0,0,a,b),e.beginPath(),e.strokeStyle="#666",e.lineWidth=1,e.moveTo(0,s),e.lineTo(a,s),e.stroke(),e.strokeStyle="#eee";for(let t=s-100;t<=s+100;t+=50)e.beginPath(),e.moveTo(0,t),e.lineTo(a,t),e.stroke();const M=600,P=q/M;e.beginPath(),e.strokeStyle="#4444ff",e.lineWidth=2;for(let t=0;t<=M;t++){const n=-1+t*P,m=t,i={real:r.value,imag:u.value},d={real:Math.exp(-i.real*n)*Math.cos(-i.imag*n)},h=s-g*(E*d.real);t===0?e.moveTo(m,h):e.lineTo(m,h)}e.stroke(),e.beginPath(),e.strokeStyle="#ff4444",e.lineWidth=2;for(let t=0;t<=M;t++){const n=-1+t*P,m=t,i={real:r.value,imag:u.value},d={real:Math.exp(i.real*n)*Math.cos(i.imag*n),imag:Math.exp(i.real*n)*Math.sin(i.imag*n)},h={real:v.value.real*d.real-v.value.imag*d.imag,imag:v.value.real*d.imag+v.value.imag*d.real},z=s-g*h.real;t===0?e.moveTo(m,z):e.lineTo(m,z)}e.stroke(),e.fillStyle="#000",e.font="12px Arial",e.textAlign="center",e.fillText("z = -L",20,s+20),e.fillText("z = 0",a-20,s+20),e.textAlign="right",e.fillText("+1",30,s-g),e.fillText("-1",30,s+g),e.textAlign="left",e.fillStyle="#4444ff",e.fillText("A·eâ»áµá¶»",a-100,30),e.fillStyle="#ff4444",e.fillText(`|Î|â ${o.value}°·eáµá¶»`,a-100,50)}return V([r,u,c,o],()=>{k()}),w(()=>{k()}),(f,e)=>(F(),U("div",D,[l("div",I,[l("div",L,[l("label",null,"Dämpfung α (Np/m): "+T(r.value.toFixed(2)),1),x(l("input",{type:"range","onUpdate:modelValue":e[0]||(e[0]=a=>r.value=a),min:0,max:5,step:"0.01",class:"param-slider"},null,512),[[_,r.value,void 0,{number:!0}]])]),l("div",N,[l("label",null,"Phasenmaà β (rad/m): "+T(u.value.toFixed(2)),1),x(l("input",{type:"range","onUpdate:modelValue":e[1]||(e[1]=a=>u.value=a),min:0,max:50,step:"0.1",class:"param-slider"},null,512),[[_,u.value,void 0,{number:!0}]])]),l("div",R,[l("div",W,[l("label",null,"|Î|: "+T(c.value.toFixed(2)),1),x(l("input",{type:"range","onUpdate:modelValue":e[2]||(e[2]=a=>c.value=a),min:0,max:1,step:"0.01",class:"param-slider"},null,512),[[_,c.value,void 0,{number:!0}]])]),l("div",j,[l("label",null,"â Î (°): "+T(o.value.toFixed(1)),1),x(l("input",{type:"range","onUpdate:modelValue":e[3]||(e[3]=a=>o.value=a),min:0,max:360,step:"1",class:"param-slider"},null,512),[[_,o.value,void 0,{number:!0}]])])])]),e[4]||(e[4]=l("div",{class:"equation"},[y(" U(z) = e"),l("sup",null,"-γz"),y(" + |Î|·e"),l("sup",null,"jÏ"),y("·e"),l("sup",null,"γz"),y(", mit γ = α + jβ ")],-1)),l("canvas",{ref_key:"plotRef",ref:S,width:"600",height:"300",class:"plot-canvas"},null,512)]))}},$=A(C,[["__scopeId","data-v-16fc84b7"]]);export{$ as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.