next up previous contents
Next: The evaluator Up: Programmer's manual Previous: Structure and organization of   Contents


Description of the most important components

In order to understand the way arithmetical networks are interpreted, modeled and eventually solved, we will discuss a small example, focusing on the main functions our equation is going to cross.21

Given the formula : $V = \pi * rē * h$, where

$V$ is the volume of the cylinder, fixed to $450 cm^3$
$\pi$ is 3.14159
$r$ is the radius fixed to $15 cm$
$h$ is the height of the cylinder. (The value we are looking for).

Let us translate this into AriNET's language In order to do so, we write the following in an Editor Window:

(defvariable V pi r h)
(set-value! pi 3.14159 'user)
(set-value! r 15 'user)
(set-value! V 450 'user)
(defconstraint (V = pi * (sqr 15) * h))



Subsections

dominique 2003-06-02