PetscPDFConstant1D — PETSc 3.25.2 documentation

Skip to main content
`Ctrl`+`K`

# PetscPDFConstant1D

PDF for the uniform distribution in 1D

## Synopsis

    #include "petscdt.h"
    PetscErrorCode PetscPDFConstant1D(const PetscReal x[], const PetscReal unused[], PetscReal p[])

Not Collective

## Input Parameters

- x - Coordinate in \([-1, 1]\)

- unused - Unused

## Output Parameter

- p - The probability density at `x`

## See Also

`PetscCDFConstant1D()`, `PetscPDFSampleConstant1D()`, `PetscPDFConstant2D()`, `PetscPDFConstant3D()`

## Level

beginner

## Location

src/dm/dt/interface/dtprob.c

Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages