import module namespace
math="http://www.zorba-xquery.com/modules/math";

math:prob((0, 1, 2, 3), (0.2, 0.3, 0.1, 0.4), 2)


(:

Expected output:

<?xml version="1.0" encoding="UTF-8"?>
0.1

                
:)