aboutsummaryrefslogtreecommitdiffstats
path: root/man/zneg.3
diff options
context:
space:
mode:
Diffstat (limited to 'man/zneg.3')
-rw-r--r--man/zneg.333
1 files changed, 33 insertions, 0 deletions
diff --git a/man/zneg.3 b/man/zneg.3
new file mode 100644
index 0000000..21f24c9
--- /dev/null
+++ b/man/zneg.3
@@ -0,0 +1,33 @@
+.TH ZNEG 3 libzahl
+.SH NAME
+zneg - Calculate the negation of a big integer
+.SH SYNOPSIS
+.nf
+#include <zahl.h>
+
+void zneg(z_t \fIa\fP, z_t \fIb\fP);
+.fi
+.SH DESCRIPTION
+.B zneg
+calculates the negation of
+.I b
+and stores the result in
+.IR a .
+That is,
+.I a
+gets
+.RI - b .
+.P
+It is safe to call
+.B zneg
+with non-unique parameters.
+.SH SEE ALSO
+.BR zset (3),
+.BR zstr (3),
+.BR zadd (3),
+.BR zsub (3),
+.BR zmul (3),
+.BR zdiv (3),
+.BR zmod (3),
+.BR zabs (3),
+.BR zpow (3)