Image:Circuit equivalence.png
From Wikipedia, the free encyclopedia
Size of this preview: 471 × 600 pixel
Image in higher resolution (1748 × 2225 pixel, file size: 18 KB, MIME type: image/png)
This is a file from the Wikimedia Commons. The description on its description page there is shown below. | |
This circuit image should be recreated using vector graphics as an SVG file. This has several advantages; see Commons:Images for cleanup for more information. If an SVG form of this image is already available, please upload it. After uploading an SVG, replace this template with template {{SupersededSVG|new image name.svg}} in this image. | |
Català | Česky | Dansk | Deutsch | English | Esperanto | Español | Français | Italiano | 日本語 | 한국어 | Nederlands | Polski | Português | Русский | العربية | 正體中文 | +/- |
Circuit diagram used by w:Analysis of resistive circuits.
David Benbennick made it with the following crappy Metapost program:
verbatimtex %&latex \documentclass{article} \begin{document} etex scale=0.8in; linethickness=1pt; def docircuit = path pp; pp = unitsquare scaled scale shifted (-scale/2,-scale/2); draw pp; fill pp withcolor thecolor; linecap:=butt; draw (-7/6scale, 1/3scale) -- (-1/2scale, 1/3scale); linecap:=butt; draw (-7/6scale, -1/3scale) -- (-1/2scale, -1/3scale); draw thelabel(btex $+$ etex, (-7/6scale, 1.2/6scale)); draw thelabel(btex $-$ etex, (-7/6scale, -1.2/6scale)); linecap:=rounded; drawarrow (-7/6scale + 1/8scale, 0.8*1/3scale) -- (-1/2scale - 1/8scale, 0.8*1/3scale) withcolor blue; if num = 1 : draw thelabel(btex \sf Circuit 1 etex, (0,0)); dotlabel.lft(btex a etex, (-7/6scale, 1/3scale)); dotlabel.lft(btex b etex, (-7/6scale, -1/3scale)); draw thelabel(btex \sf V$_1$ etex, (-0.97*7/6scale, -0.02*scale)); draw thelabel(btex \sf I$_1$ etex, (-5/6scale, 0.4*1/3scale)); else : draw thelabel(btex \sf Circuit 2 etex, (0,0)); dotlabel.lft(btex x etex, (-7/6scale, 1/3scale)); dotlabel.lft(btex y etex, (-7/6scale, -1/3scale)); draw thelabel(btex \sf V$_2$ etex, (-0.97*7/6scale, -0.02*scale)); draw thelabel(btex \sf I$_2$ etex, (-5/6scale, 0.4*1/3scale)); fi; enddef; beginfig(1); pickup pencircle scaled linethickness; color thecolor; thecolor = (0.8,1,1); num := 1; docircuit; currentpicture := currentpicture shifted (0, 1.3*scale); thecolor := (1,1,0.8); num := 2; docircuit; currentpicture := currentpicture shifted (10cm,5cm); endfig; end;
I saved the above as Circuit_equivalence.mp, and the TeX program below as Circuit_equivalence.tex:
&latex \documentclass[10pt]{article} \usepackage{graphicx} \pagestyle{empty} \begin{document} \includegraphics{Circuit_equivalence.1} \end{document}
Then I ran
mpost Circuit_equivalence tex Circuit_equivalence dvips -mode ljfzzz -D 1200 Circuit_equivalence -o convert -density 1200 Circuit_equivalence.ps Circuit_equivalence.pnm pnmcrop Circuit_equivalence.pnm | pnmtopng > a.png pngrewrite a.png Circuit_equivalence.png optipng Circuit_equivalence.png
|
File links
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):