FLINT3.7.0-dev

ca_mul_fmpq, ca_mul_fmpz, ca_mul_ui, ca_mul_si, ca_mul

Synopsis#include <flint/ca.h>
void ca_mul_fmpq(ca_t res, const ca_t x, const fmpq_t y, ca_ctx_t ctx)source
void ca_mul_fmpz(ca_t res, const ca_t x, const fmpz_t y, ca_ctx_t ctx)source
void ca_mul_ui(ca_t res, const ca_t x, ulong y, ca_ctx_t ctx)source
void ca_mul_si(ca_t res, const ca_t x, slong y, ca_ctx_t ctx)source
void ca_mul(ca_t res, const ca_t x, const ca_t y, ca_ctx_t ctx)source

Sets res to x y.

For special values:

  • c \infty \cdot d \infty = (c d) \infty;
  • \tilde \infty \cdot \tilde \infty = \tilde \infty \cdot c \infty = \tilde \infty;
  • c \infty \cdot z = (c \operatorname{sgn}(z)) \infty and \tilde \infty \cdot z = \tilde \infty if z \ne 0;
  • c \infty \cdot 0 and \tilde \infty \cdot 0 are Undefined;
  • Undefined times any value is Undefined; otherwise Unknown times any value is Unknown.

When it cannot be decided whether z = 0, the product of z and an infinity is Unknown.

Guides#

Cite this page

The FLINT team, “ca_mul_fmpq, ca_mul_fmpz, ca_mul_ui, ca_mul_si, ca_mul (ca.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/ca/ca_mul_fmpq.html (generated 2026-10-20).