# FNSetParameters

Sets the parameters that define the matematical function.

### Synopsis

    #include "slepcfn.h"
    PetscErrorCode FNSetParameters(FN fn,PetscInt na,PetscScalar *alpha,PetscInt nb,PetscScalar *beta)

Logically Collective on FN

### Input Parameters

| fn | - the math function context
| na | - number of parameters in the first group
| alpha | - first group of parameters (array of scalar values)
| nb | - number of parameters in the second group
| beta | - second group of parameters (array of scalar values)

### Notes

In a rational function r(x) = p(x)/q(x), where p(x) and q(x) are polynomials, the parameters alpha and beta represent the coefficients of p(x) and q(x), respectively. Hence, p(x) is of degree na-1 and q(x) of degree nb-1. If nb is zero, then the function is assumed to be polynomial, r(x) = p(x).

In other functions the parameters have other meanings.

In polynomials, high order coefficients are stored in the first positions of the array, e.g. to represent x^2-3 use {1,0,-3}.

### See Also

FNGetParameters()

Location: src/fn/fnbasic.c
Index of all FN routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/nep/examples/tutorials/ex22.c.html