Site Tools


test

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
test [August 17, 2026 at 17:39] Ivan Janevskitest [August 17, 2026 at 17:49] (current) Ivan Janevski
Line 1: Line 1:
-Can I use ket +\documentclass[tikz,border=5pt]{standalone}
-$$\lvert\psi\rangle\langle\psi\lvert\\ \ket{\psi}\bra{\psi}$$+
  
-<p5sketch> +\usepackage{amsmath
-fdsafsdafds +\usepackage{circuitikz
-<p5sketch> +\usetikzlibrary{ 
- +    calc, 
-\documentclass[tikz,border=5pt]{standalone+    arrows.meta, 
-\usepackage[american]{circuitikz}+    decorations.pathmorphing 
 +}
  
 \begin{document} \begin{document}
  
 \begin{circuitikz}[ \begin{circuitikz}[
-    scale=1.25+    line width=1.35pt
-    transform shape+    line cap=round
-    every node/.style={font=\large}+    line join=round, 
 +    >=Latex, 
 +    font=\Large
 ] ]
  
-Nodes +============================================================ 
-\coordinate (C)  at (0,0);+% Resistor style 
 +% ============================================================
  
-\coordinate (TL) at (-22); +\tikzset{ 
-\coordinate (LM) at (-30); +    resistor/.style={ 
-\coordinate (BL) at (-2,-2);+        decorate
 +        decoration={ 
 +            zigzag
 +            segment length=8.0pt, 
 +            amplitude=5.2pt 
 +        } 
 +    } 
 +}
  
-\coordinate (TR) at ( 2, 2); +% ============================================================ 
-\coordinate (RM) at ( 3, 0); +% Main geometry 
-\coordinate (BR) at ( 2,-2);+% ============================================================
  
-% ------------------------------------------------------------------ +\coordinate (C)  at ( 0.00, 0.00); 
-Outer branches + 
-% ------------------------------------------------------------------+\coordinate (L)  at (-4.40, 0.00); 
 +\coordinate (TL) at (-2.10, 3.80); 
 +\coordinate (TR) at ( 2.22, 3.80); 
 +\coordinate (R)  at ( 4.40, 0.00); 
 +\coordinate (BR) at ( 2.26,-3.72); 
 +\coordinate (BL) at (-2.28,-3.72); 
 + 
 +% ============================================================ 
 +% Outer upper-left branch 
 +% ============================================================ 
 + 
 +\coordinate (UL1) at ($(L)!0.25!(TL)$); 
 +\coordinate (UL2) at ($(L)!0.67!(TL)$); 
 + 
 +\draw (L) -- (UL1); 
 +\draw[resistor] (UL1) -- (UL2); 
 +\draw (UL2) -- (TL); 
 + 
 +\node at (-3.79,1.88) {$R$}; 
 + 
 +============================================================ 
 +Top branch: Ig1 + R 
 +% ============================================================ 
 + 
 +\coordinate (Ig1) at (-0.91,3.80);
  
-% Top: TL -- Ig1 -- R -- TR 
 \draw \draw
     (TL)     (TL)
-    to[I, l=$I_{g1}$, invert] (-0.9,2) +    -- 
-    to[R, l=$R$] (TR);+    ($(Ig1)+(-0.62,0)$);
  
-% Upper-left 
 \draw \draw
-    (TLto[Rl_=$R$(LM);+    (Ig1) 
 +    circle[radius=0.62]; 
 + 
 +\draw[-{Latex[length=8pt,width=8pt]},line width=1.5pt] 
 +    ($(Ig1)+(0.30,0)$
 +    -- 
 +    ($(Ig1)+(-0.31,0)$);
  
-% Lower-left: LM -- E2 -- R -- BL 
 \draw \draw
-    (LM+    ($(Ig1)+(0.62,0)$
-    to[Vl_=$E_2$(-2.55,-0.85+    -- 
-    to[R, l_=$R$] (BL);+    (0.04,3.80); 
 + 
 +\draw[resistor] 
 +    (0.04,3.80) 
 +    -- 
 +    (1.14,3.80); 
 + 
 +\draw 
 +    (1.14,3.80) 
 +    -- 
 +    (TR); 
 + 
 +\node at (-0.91,4.77) {$I_{g1}$}; 
 +\node at (0.59,4.36) {$R$}; 
 + 
 +% ============================================================ 
 +% Outer upper-right branch 
 +% ============================================================ 
 + 
 +\coordinate (UR1) at ($(TR)!0.25!(R)$); 
 +\coordinate (UR2) at ($(TR)!0.67!(R)$); 
 + 
 +\draw (TR) -- (UR1); 
 +\draw[resistor] (UR1) -- (UR2); 
 +\draw (UR2) -- (R); 
 + 
 +\node at (3.75,1.88) {$R$}; 
 + 
 +============================================================ 
 +% Outer lower-right branch 
 +% ============================================================ 
 + 
 +\coordinate (LR1) at ($(R)!0.26!(BR)$); 
 +\coordinate (LR2) at ($(R)!0.67!(BR)$); 
 + 
 +\draw (R) -- (LR1); 
 +\draw[resistor] (LR1) -- (LR2); 
 +\draw (LR2) -- (BR); 
 + 
 +\node at (3.72,-1.88) {$R$}; 
 + 
 +% ============================================================ 
 +% Bottom branch: E3 + R 
 +% ============================================================ 
 + 
 +\coordinate (E3) at (-1.01,-3.72);
  
-% Bottom: BL -- E3 -- R -- BR 
 \draw \draw
     (BL)     (BL)
-    to[V, l_=$E_3$] (-0.7,-2) +    -- 
-    to[R, l_=$R$] (BR);+    ($(E3)+(-0.62,0)$);
  
-% Upper-right 
 \draw \draw
-    (TRto[R, l=$R$(RM);+    (E3) 
 +    circle[radius=0.62];
  
-% Lower-right 
 \draw \draw
-    (RMto[Rl=$R$] (BR);+    ($(E3)+(0.62,0)$
 +    -- 
 +    (0.02,-3.72);
  
-% ------------------------------------------------------------------ +\draw[resistor] 
-% Inner branches +    (0.02,-3.72) 
-% ------------------------------------------------------------------+    -- 
 +    (1.15,-3.72);
  
-% TL -- R -- C 
 \draw \draw
-    (TLto[Rl=$R$(C);+    (1.15,-3.72) 
 +    -- 
 +    (BR); 
 + 
 +\node at (-1.23,-4.48) {$+$}; 
 +\node at (-1.00,-5.08) {$E_3$}; 
 +\node at (0.59,-4.36) {$R$}; 
 + 
 +% ============================================================ 
 +% Outer lower-left branch: E2 + R 
 +% ============================================================ 
 + 
 +\coordinate (E2) at (-3.70,-1.08);
  
-% LM -- Ig2 --> C 
 \draw \draw
-    (LMto[I, l=$I_{g2}$] (C);+    (L) 
 +    -- 
 +    ($(E2)!0.62cm!(L)$);
  
-% BL -- R -- C 
 \draw \draw
-    (BLto[R, l=$R$(C);+    (E2) 
 +    circle[radius=0.62]; 
 + 
 +\coordinate (E2out) 
 +    at ($(E2)!0.62cm!(BL)$); 
 + 
 +\coordinate (LL1) 
 +    at ($(E2out)!0.28!(BL)$); 
 + 
 +\coordinate (LL2) 
 +    at ($(E2out)!0.70!(BL)$);
  
-% C -- E1 -- TR 
 \draw \draw
-    (Cto[V, l=$E_1$] (TR);+    (E2out) 
 +    -- 
 +    (LL1); 
 + 
 +\draw[resistor] 
 +    (LL1) 
 +    -- 
 +    (LL2);
  
-% C -- Ig3 --> RM 
 \draw \draw
-    (Cto[Il=$I_{g3}$(RM);+    (LL2) 
 +    -- 
 +    (BL); 
 + 
 +\node at (-4.76,-0.80) {$+$}; 
 +\node at (-4.80,-1.84) {$E_2$}
 +\node at (-3.67,-2.91) {$R$}; 
 + 
 +% ============================================================ 
 +% Horizontal branch: Ig2 
 +% ============================================================ 
 + 
 +\coordinate (Ig2) at (-2.05,0);
  
-% C -- E4 -- BR 
 \draw \draw
-    (Cto[V, l=$E_4$] (BR);+    (L) 
 +    -- 
 +    ($(Ig2)+(-0.62,0)$);
  
-% ------------------------------------------------------------------ +\draw 
-% Junction dots +    (Ig2) 
-% ------------------------------------------------------------------+    circle[radius=0.62];
  
-\foreach \p in {TL,LM,BL,C,TR,RM,BR} +\draw[-{Latex[length=8pt,width=8pt]},line width=1.5pt] 
-    \fill (\pcircle (2pt);+    ($(Ig2)+(-0.30,0)$) 
 +    -- 
 +    ($(Ig2)+(0.31,0)$);
  
-\end{circuitikz}+\draw 
 +    ($(Ig2)+(0.62,0)$) 
 +    -- 
 +    (C);
  
-\end{document}+\node at (-2.06,1.10) {$I_{g2}$};
  
 +% ============================================================
 +% Horizontal branch: Ig3
 +% ============================================================
  
 +\coordinate (Ig3) at (2.07,0);
  
 +\draw
 +    (C)
 +    --
 +    ($(Ig3)+(-0.62,0)$);
  
-\documentclass[border=5pt]{standalone} +\draw 
-\usepackage{tikz} +    (Ig3
-\usetikzlibrary{arrows.meta,positioning} +    circle[radius=0.62];
-\begin{document} +
-\begin{tikzpicture}[node distance=18mm,>={Stealth[round]}] +
-  \node[draw,circle] (a) {$a$}; +
-  \node[draw,circle,right=of a] (b{$b$}; +
-  \node[draw,circle,right=of b] (c) {$c$}; +
-  \draw[->,thick] (a) -- node[above]{$f$} (b); +
-  \draw[->,thick] (b) -- node[above]{$g$} (c); +
-  \draw[->,thick,bend right=40(a) to node[below]{$g\circ f$} (c); +
-\end{tikzpicture} +
-\end{document}+
  
 +\draw[-{Latex[length=8pt,width=8pt]},line width=1.5pt]
 +    ($(Ig3)+(-0.30,0)$)
 +    --
 +    ($(Ig3)+(0.31,0)$);
  
-\documentclass[border=5pt]{standalone} +\draw 
-\usepackage{tikz} +    ($(Ig3)+(0.62,0)$) 
-\begin{document} +    -- 
-\begin{tikzpicture}[opacity=0.55,text opacity=1] +    (R);
-  \fill[red!70]   90:0.9) circle (1.5)+
-  \fill[green!70] (210:0.9) circle (1.5); +
-  \fill[blue!70]  (330:0.9) circle (1.5); +
-  \node at ( 90:1.7{$A$}; +
-  \node at (210:1.7{$B$}; +
-  \node at (330:1.7) {$C$}; +
-  \node[opacity=1] at (0,0{\small $A\cap B\cap C$}; +
-\end{tikzpicture} +
-\end{document}+
  
 +\node at (2.08,1.10) {$I_{g3}$};
  
 +% ============================================================
 +% Internal upper-left resistor
 +% ============================================================
  
-<circuitjs width="800" height="600"> +\coordinate (IUL1) 
-1 5.0E-6 10 53 5.0 50 +    at ($(TL)!0.27!(C)$); 
-v 160 352 160 64 0 1 40.0 5.0 0.0 + 
-w 160 64 304 64 0 +\coordinate (IUL2) 
-w 304 64 304 128 0 +    at ($(TL)!0.66!(C)$); 
-d 304 128 368 192 0 + 
-d 304 256 368 192 0 +\draw 
-d 240 192 304 128 +    (TL) 
-d 240 192 304 256 0 +    -
-w 304 256 304 352 0 +    (IUL1); 
-w 304 352 160 352 0 + 
-w 240 192 240 288 +\draw[resistor] 
-w 368 192 416 192 0 +    (IUL1) 
-w 240 288 416 288 0 +    -- 
-r 416 192 416 288 100.0 +    (IUL2); 
-x 463 248 479 248 20 load + 
-o 0 64 0 3 5.0 0.05 +\draw 
-o 12 64 3 5.0.05 +    (IUL2) 
-</circuitjs>+    -- 
 +    (C); 
 + 
 +\node at (-1.36,1.88) {$R$}; 
 + 
 +% ============================================================ 
 +% Internal lower-left resistor 
 +% ============================================================ 
 + 
 +\coordinate (ILL1) 
 +    at ($(C)!0.31!(BL)$); 
 + 
 +\coordinate (ILL2) 
 +    at ($(C)!0.68!(BL)$); 
 + 
 +\draw 
 +    (C) 
 +    -- 
 +    (ILL1); 
 + 
 +\draw[resistor] 
 +    (ILL1) 
 +    -- 
 +    (ILL2); 
 + 
 +\draw 
 +    (ILL2) 
 +    -- 
 +    (BL); 
 + 
 +\node at (-1.33,-1.88) {$R$}; 
 + 
 +% ============================================================ 
 +% Internal upper-right source E1 
 +% ============================================================ 
 + 
 +\coordinate (E1) at (1.20,2.10); 
 + 
 +\draw 
 +    (C) 
 +    -- 
 +    ($(E1)!0.62cm!(C)$); 
 + 
 +\draw 
 +    (E1) 
 +    circle[radius=0.62]; 
 + 
 +\draw 
 +    ($(E1)!0.62cm!(TR)$) 
 +    -- 
 +    (TR); 
 + 
 +\node at (0.83,2.97) {$E_1$}; 
 +\node[rotate=-31] at (0.87,3.31) {$+$}; 
 + 
 +% ============================================================ 
 +% Internal lower-right source E4 
 +% ============================================================ 
 + 
 +\coordinate (E4) at (1.24,-2.07); 
 + 
 +\draw 
 +    (C) 
 +    -- 
 +    ($(E4)!0.62cm!(C)$); 
 + 
 +\draw 
 +    (E4) 
 +    circle[radius=0.62]; 
 + 
 +\draw 
 +    ($(E4)!0.62cm!(BR)$) 
 +    -- 
 +    (BR); 
 + 
 +\node at (2.06,-1.67) {$E_4$}; 
 +\node[rotate=-31] at (2.20,-2.14) {$+$}; 
 + 
 +% ============================================================ 
 +% Junction dots 
 +% ============================================================ 
 + 
 +\fill (L)  circle[radius=4.2pt]; 
 +\fill (TL) circle[radius=4.2pt]; 
 +\fill (TR) circle[radius=4.2pt]; 
 +\fill (R)  circle[radius=4.2pt]; 
 +\fill (BR) circle[radius=4.2pt]; 
 +\fill (BL) circle[radius=4.2pt]; 
 +\fill (C)  circle[radius=4.2pt]; 
 + 
 +\end{circuitikz} 
 + 
 +\end{document}
test.1786988362.md.gz · Last modified: by Ivan Janevski