summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Views.m4
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-09-13 20:35:42 +0000
committerKarl Berry <karl@freefriends.org>2023-09-13 20:35:42 +0000
commite261648faff137468efda86027da0838f3a8efe9 (patch)
treeb1a33d20c21ba3fb1f5810757c69112517962b75 /Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Views.m4
parentea73677774e333cbf72d7db857d88f1c03b81d4b (diff)
circuit_macros (13sep23)
git-svn-id: svn://tug.org/texlive/trunk@68264 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Views.m4')
-rw-r--r--Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Views.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Views.m4 b/Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Views.m4
index c02c9a48172..e33c6566826 100644
--- a/Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Views.m4
+++ b/Master/texmf-dist/doc/latex/circuit-macros/examples/extras/Views.m4
@@ -43,9 +43,9 @@ define(`textwidth',5.5)
define vec4 { $4[1] = $1; $4[2] = $2; $4[3] = $3; $4[4] = 1 }
# copy4( vector, vector )
define copy4 { $2[1] = $1[1]; $2[2] = $1[2]; $2[3] = $1[3]; $2[4] = $1[4] }
-# pr4( vector, label )
+# pr4( vector, label ) # projected vector (see pr below)
define pr4 { if $1[4]==0 then { print "Divide by zero" } \
- else { $2: pr($1[1]/$1[4],$1[2]/$1[4],$1[3]/$1[4]) }}
+ else { $2: pr($1[1]/$1[4],$1[2]/$1[4],$1[3]/$1[4]) }}
define print4 { print sprintf("%g,%g,%g,%g",$1[1],$1[2],$1[3],$1[4]) }
'