slepc-3.7.3 2016-09-29
Report Typos and Errors

# FNPhiSetIndex

Sets the index of the phi-function.

### Synopsis

    #include "slepcfn.h"
    PetscErrorCode FNPhiSetIndex(FN fn,PetscInt k)

Logically Collective on FN

### Input Parameters

| fn | - the math function context
| k | - the index

### Notes

The phi-functions are defined as follows. The default is k=1.

          phi_0(x) = exp(x)
          phi_1(x) = (exp(x)-1)/x
          phi_k(x) = (phi_{k-1}(x)-1/(k-1)!)/x

### See Also

FNPhiGetIndex()

Location: src/sys/classes/fn/impls/phi/fnphi.c
Index of all FN routines
Table of Contents for all manual pages
Index of all manual pages