summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/doc/asymptote.texi
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-05-12 22:54:35 +0000
committerKarl Berry <karl@freefriends.org>2016-05-12 22:54:35 +0000
commitf0e23ed3daf4d57345cfa284164276b520302c03 (patch)
tree3e5b0729899d1e124eec7996df94fd9f7e688d05 /Build/source/utils/asymptote/doc/asymptote.texi
parentbd459bc63bbacb77224c9d858759541096c095c8 (diff)
asy 2.38 sources
git-svn-id: svn://tug.org/texlive/trunk@41074 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/doc/asymptote.texi')
-rw-r--r--Build/source/utils/asymptote/doc/asymptote.texi29
1 files changed, 18 insertions, 11 deletions
diff --git a/Build/source/utils/asymptote/doc/asymptote.texi b/Build/source/utils/asymptote/doc/asymptote.texi
index abbc5c8799a..47b67a23736 100644
--- a/Build/source/utils/asymptote/doc/asymptote.texi
+++ b/Build/source/utils/asymptote/doc/asymptote.texi
@@ -652,7 +652,7 @@ with @code{./configure --disable-gc}. For a list of other configuration
options, say @code{./configure --help}. For example, one can tell
configure to look for header files and libraries in nonstandard locations:
@verbatim
-./configure CXXFLAGS=-I/opt/usr/include LDFLAGS=-L/opt/usr/lib
+./configure CXXFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib
@end verbatim
If you are compiling @code{Asymptote} with @code{gcc}, you will need a
@@ -4360,33 +4360,40 @@ the @code{Asymptote} base module @code{plain}.
@cindex binary operators
@cindex boolean operators
@cindex logical operators
-@cindex integer division
@cindex @code{quotient}
@code{Asymptote} uses the standard binary arithmetic operators.
However, when one integer is divided by another, both arguments are
converted to real values before dividing and a real quotient is
-returned (since this is usually what is intended). The function
-@code{int quotient(int x, int y)} returns the greatest integer less
-than or equal to @code{x/y}. In all other cases both operands are
-promoted to the same type, which will also be the type of the result:
+returned (since this is typically what is intended; otherwise
+one can use the function @code{int quotient(int x, int y)}, which returns
+greatest integer less than or equal to @code{x/y}). In all other cases both
+operands are promoted to the same type, which will also be the
+type of the result:
@table @code
@cindex @code{+}
@item +
addition
@cindex @code{-}
@item -
-subtraction
+subtractiona
@cindex @code{*}
@item *
multiplication
@cindex @code{/}
@item /
division
+@cindex integer division
+@cindex @code{#}
+@item #
+integer division; equivalent to @code{quotient(x,y)}. Noting that the
+@code{Python3} community adopted our comment symbol (@code{//}) for
+integer division, we decided to reciprocate and use their comment
+symbol for integer division in @code{Asymptote}!
@cindex @code{%}
@item %
modulo; the result always has the same sign as the divisor.
-In particular, this makes @code{q*quotient(p,q)+p%q == p} for all
+In particular, this makes @code{q*(p # q)+p % q == p} for all
integers @code{p} and nonzero integers @code{q}.
@cindex @code{^}
@item ^
@@ -4475,7 +4482,7 @@ for nonintegral built-in arithmetic types @code{T}. If @code{a} and
@cindex @code{--}
As in C, each of the arithmetic operators @code{+}, @code{-}, @code{*},
-@code{/}, @code{%}, and @code{^} can be used as a self operator.
+@code{/}, @code{#}, @code{%}, and @code{^} can be used as a self operator.
The prefix operators @code{++} (increment by one) and @code{--} (decrement
by one) are also defined.
For example,
@@ -9566,9 +9573,9 @@ To receive announcements of upcoming releases, please subscribe to
If you find a bug in @code{Asymptote}, please check (if possible)
whether the bug is still present in the latest @code{git}
developmental code (@pxref{Git}) before submitting a bug
-report. New bugs can be submitted using the Bug Tracking System at
+report. New bugs can be reported at
@quotation
-@url{http://sourceforge.net/projects/asymptote}
+@url{https://github.com/vectorgraphics/asymptote/issues}
@end quotation
@noindent
To see if the bug has already been fixed,