> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/f/first-class_functions/use_numbers_analogously.md).

# Use numbers analogously

```ruby
func multiplier(n1, n2) {
    func (n3) {
        n1 * n2 * n3
    }
}
 
var x  = 2.0
var xi = 0.5
var y  = 4.0
var yi = 0.25
var z  = (x + y)
var zi = (1 / (x + y))
 
var numbers = [x, y, z]
var inverses = [xi, yi, zi]
 
for f,g (numbers ~Z inverses) {
    say multiplier(f, g)(0.5)
}
```

#### Output:

```
0.5
0.5
0.5
```
