evalQspray function

Evaluate a 'qspray' object

Evaluate a 'qspray' object

Evaluation of the multivariate polynomial represented by a qspray object.

evalQspray(qspray, values_re, values_im = NULL)

Arguments

  • qspray: a qspray object
  • values_re: vector of the real parts of the values; each element of as.character(values_re) must be a quoted integer or a quoted fraction
  • values_im: vector of the imaginary parts of the values; each element of as.character(values_im) must be a quoted integer or a quoted fraction

Returns

A bigq number if values_im=NULL, a pair of bigq

numbers otherwise: the real part and the imaginary part of the result.

Examples

x <- qlone(1); y <- qlone(2) P <- 2*x + "1/2"*y evalQspray(P, c("2", "5/2", "99999")) # "99999" will be ignored
  • Maintainer: Stéphane Laurent
  • License: GPL-3
  • Last published: 2024-07-27