| 1 |
.PS |
| 2 |
# https://tex.stackexchange.com/questions/661461/flowchart-with-overlapping-of-the-rows |
| 3 |
sinclude(FlowchartDefs.m4def) |
| 4 |
sinclude(../FlowchartDefs.m4def) |
| 5 |
|
| 6 |
down_ |
| 7 |
smallsep = boxht/3 |
| 8 |
testw = flowboxwid*7/4 |
| 9 |
testh = flowboxht*9/4 |
| 10 |
Start: Fbox("Start",,rad boxht/8 shaded "red!30") |
| 11 |
arrow down_ smallsep |
| 12 |
Input: Fdata(`"Input: $f(), a, b, \epsilon$"',wid boxwid*5/4,, |
| 13 |
shaded "blue!30") |
| 14 |
arrow down_ smallsep |
| 15 |
Formula1: Fbox(`"$c=(a+b)/2$"',,shaded "orange!30") |
| 16 |
arrow down_ smallsep |
| 17 |
Test1: Ftest("if:" `"$f(a)*f(b) > 0$" "\vphantom{\vrule height6pt}"', |
| 18 |
wid testw ht testh, shaded "green!30") |
| 19 |
A2: arrow down_ smallsep "False" ljust |
| 20 |
Test2: Ftest("while:" `"$f(c)\neq 0 \;\&$" "$|f(b)-f(a)| > \delta$" \ |
| 21 |
"\vphantom{\vrule height6pt}"',wid testw ht testh, shaded "green!30") |
| 22 |
arrow down_ smallsep "True" ljust |
| 23 |
Formula2: Fbox(`"$c=(a+b)/2$"',,shaded "orange!30") |
| 24 |
arrow down_ smallsep |
| 25 |
Test3: Ftest("if:" `"$f(a)*f(c) < 0$" "\vphantom{\vrule height6pt}"', |
| 26 |
wid testw ht testh, shaded "green!30") |
| 27 |
{ arrow from Test3.W left_ boxht*2/3 "True" below |
| 28 |
Formula3: Fbox(`"$b=c$"',,shaded "orange!30") |
| 29 |
arrow from Formula3.N to (Formula3.N,A2) } |
| 30 |
arrow down_ smallsep "False" ljust then left Test3.x-Formula3.E.x |
| 31 |
Formula4: Fbox(`"$a=c$"',,shaded "orange!30") with .E at Here |
| 32 |
{ arrow from Formula4.W left_ Formula4.W.x-Formula3.W.x + smallsep \ |
| 33 |
then up_ A2.y-Formula4.y then to A2 } |
| 34 |
down_ |
| 35 |
Output: Fdata(`"Output: $H, v, t$"',wid boxwid*5/4,,shaded "blue!30") \ |
| 36 |
with .N at (Test1.E+(3*smallsep,0),Formula4.N) |
| 37 |
{ arrow from Test1.E right_ Output.N.x-Test1.E.x "True" above \ |
| 38 |
then to Output.N |
| 39 |
arrow from Test2.E right_ Output.N.x-Test1.E.x "False" above } |
| 40 |
arrow down_ smallsep |
| 41 |
Plot: Fbox(,wid boxwid*5/4,shaded "orange!30") |
| 42 |
{ ["Plot:" ljust "H on T and V on T" ljust] with .w at Plot.W+(3bp__,0) } |
| 43 |
arrow down_ smallsep |
| 44 |
Stop: Fbox("Stop",,rad boxht/8 shaded "red!30") |
| 45 |
|
| 46 |
|
| 47 |
.PE |