slepc-3.18.1 2022-11-02
Report Typos and Errors

# FNSetType

Selects the type for the FN object.

### Synopsis

    #include "slepcfn.h"
    PetscErrorCode FNSetType(FN fn,FNType type)

Logically Collective on fn

### Input Parameters

| fn | - the math function context
| type | - a known type

### Notes

The default is FNRATIONAL, which includes polynomials as a particular case as well as simple functions such as f(x)=x and f(x)=constant.

### See Also

FNGetType()

### Level

intermediate

### Location

src/sys/classes/fn/interface/fnbasic.c

### Examples

src/eps/tutorials/ex36.c.html
src/nep/tutorials/ex22.c.html
src/nep/tutorials/ex22f90.F90.html
src/nep/tutorials/ex27.c.html
src/nep/tutorials/ex27f90.F90.html
src/nep/tutorials/ex42.c.html
src/nep/tutorials/nlevp/gun.c.html
src/nep/tutorials/nlevp/loaded_string.c.html
src/mfn/tutorials/ex23.c.html
src/mfn/tutorials/ex23f90.F90.html
src/mfn/tutorials/ex26.c.html
Index of all FN routines
Table of Contents for all manual pages
Index of all manual pages