
에 정의된 다음 연산자 각각을 사용하는 방법을 설명하는 문서를 찾을 수 없습니다 pst-tools
.
실용적인 예를 들어주실 수 있나요(예: 벡터 추가 단순화)
\pnode(2,2){A}
\pscircle(A){2}
\pstVerb{/xyxyadd {3 2 roll add 3 1 roll add exch} bind def}%
\pnode(!2 60 PtoC N-A.x N-A.y xyxyadd){B}
그것은 같다\nodexn{(A)+(2;60)}{B}
\pnode(2,2){A}
각 연산자에 대해 where ? 나는 주어진 답변이 우리 대부분에게 유용할 것이라고 믿습니다.
편집하다:
실제 시나리오는 방법 5와 방법 6을 단순화하기 위해 복소수 덧셈을 적용하는 것입니다.다음 답변.
답변1
cxadd
(복소수 덧셈) 의 예 명령줄에서 gs를 사용하는 것뿐입니다.
$ gs
GPL Ghostscript 9.04 (2011-08-05)
Copyright (C) 2011 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS>(/usr/local/texlive/2012/texmf-dist/dvips/pst-tools/pst-tools.pro)run
GS>[2 2] [2 60] cxadd ==
[4 62]
GS>