1. A system for computing probabilities of variables in a belief network, the system comprising: a data acquisition interface configured to receive data representative of the belief network; a partial evaluator configured to carry out a partial evaluation algorithm that determines the probability calculations that must be performed on the received data in order to compute the probabilities of the variables in the belief network; and a source code generator configured to output the probability calculations as a source code in a programming language.