# OOF2: The Manual

## Name

XYFunction — Compute an arbitrary scalar function of x and y.

## Output Categories

## Description

Compute a function of spatial coordinates `x`

and
`y`

on a `Mesh`

.

The function is evaluated by the Python interpreter, so it can
contain any legal Python expressions. Any variables defined in the
**OOF2** Console window
can be used in the function. For example, if you type

`slope=3`

in the Console, you can enter

`slope*x + y`

for `f`

. The Python math library is also
available. You could set `f`

to

`sin(x*y/100)`

for example.