summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Flow2.m4
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-03-11 21:11:43 +0000
committerKarl Berry <karl@freefriends.org>2023-03-11 21:11:43 +0000
commit6bc45f3087df0ce19bdf3c57a0aec55944ec40ed (patch)
tree3faac3b12b92fc4ba09b62c0472a9b3654dada6a /Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Flow2.m4
parent86d58778de06c53c2e0b20f25556b96619a2dc42 (diff)
circuit-macros (11mar23)%
git-svn-id: svn://tug.org/texlive/trunk@66549 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Flow2.m4')
-rw-r--r--Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Flow2.m447
1 files changed, 47 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Flow2.m4 b/Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Flow2.m4
new file mode 100644
index 00000000000..6f8e2affbf4
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Flow2.m4
@@ -0,0 +1,47 @@
+.PS
+# https://tex.stackexchange.com/questions/661461/flowchart-with-overlapping-of-the-rows
+sinclude(FlowchartDefs.m4def)
+sinclude(../FlowchartDefs.m4def)
+
+down_
+ smallsep = boxht/3
+ testw = fboxwid*7/4
+ testh = fboxht*9/4
+ Start: Fbox("Start",,rad boxht/8 shaded "red!30")
+ arrow down_ smallsep "False" ljust
+ Input: Fdata(`"Input: $f(), a, b, \epsilon$"',wid boxwid*5/4,,
+ shaded "blue!30")
+ arrow down_ smallsep
+ Formula1: Fbox(`"$c=(a+b)/2$"',,shaded "orange!30")
+ arrow down_ smallsep
+ Test1: Ftest("if:" `"$f(a)*f(b) > 0$" "\vphantom{\vrule height6pt}"',
+ wid testw ht testh, shaded "green!30")
+ A2: arrow down_ smallsep "False" ljust
+ Test2: Ftest("while:" `"$f(c)\neq 0 \;\&$" "$|f(b)-f(a)| > \delta$" \
+ "\vphantom{\vrule height6pt}"',wid testw ht testh, shaded "green!30")
+ arrow down_ smallsep "True" ljust
+ Formula2: Fbox(`"$c=(a+b)/2$"',,shaded "orange!30")
+ arrow down_ smallsep
+ Test3: Ftest("if:" `"$f(a)*f(c) < 0$" "\vphantom{\vrule height6pt}"',
+ wid testw ht testh, shaded "green!30")
+ { arrow from Test3.W left_ boxht*2/3 "True" below
+ Formula3: Fbox(`"$b=c$"',,shaded "orange!30")
+ arrow from Formula3.N to (Formula3.N,A2) }
+ arrow down_ smallsep "False" ljust then left Test3.x-Formula3.E.x
+ Formula4: Fbox(`"$a=c$"',,shaded "orange!30") with .E at Here
+ { arrow from Formula4.W left_ Formula4.W.x-Formula3.W.x + smallsep \
+ then up_ A2.y-Formula4.y then to A2 }
+ down_
+ Output: Fdata(`"Output: $H, v, t$"',wid boxwid*5/4,,shaded "blue!30") \
+ with .N at (Test1.E+(3*smallsep,0),Formula4.N)
+ { arrow from Test1.E right_ Output.N.x-Test1.E.x "True" above \
+ then to Output.N
+ arrow from Test2.E right_ Output.N.x-Test1.E.x "False" above }
+ arrow down_ smallsep
+ Plot: Fbox(,wid boxwid*5/4,shaded "orange!30")
+ { ["Plot:" ljust "H on T and V on T" ljust] with .w at Plot.W+(3bp__,0) }
+ arrow down_ smallsep
+ Stop: Fbox("Stop",,rad boxht/8 shaded "red!30")
+
+
+.PE