evalRatioOfQsprays {ratioOfQsprays}R Documentation

Evaluate a 'ratioOfQsprays' object

Description

Evaluation of the fraction of multivariate polynomials represented by a ratioOfQsprays object.

Usage

evalRatioOfQsprays(roq, values_re, values_im = NULL)

Arguments

roq

a ratioOfQsprays 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

Value

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)
roq <- 2*x / (x^2 + 3*y^2)
evalRatioOfQsprays(roq, c("2", "5/2", "99999")) # "99999" will be ignored

[Package ratioOfQsprays version 1.1.0 Index]