Get your essays here, 33,000 to choose from!

Limited Time Offer at Free College Essays!!!

Euclid

2 Pages 506 Words


Euclid
Euclid is a programming language trying to merge two different programming paradigms: (constraint) logic programming and algebraic manipulation packages. Its syntax is close to that of any CLP system but it offers many more mathematically oriented data structures and domains of computation than a standard CLP system. Among these data structures are reals, real intervals, real symbolic functions and vectors as well as user-defined structures containing domain constructs.
The purpose of Euclid is to create system under which knowledge that uses mathematics can be easily represented (i.e. mathematical models in physics, economics or engineering). The system is intended mainly for problem solving; the main difference with standard CLP systems is that it prefers hard calculations to a great number of simple ones.
Theoretically Euclid is an instance of the Domain Logic Programming Scheme, a multi-domain extension to constraint logic programming. Formal correctness and completeness can be proven in that scheme.
A Euclid program is a collection of constraint clauses. Each constraint clause is a statement about the problem in hand. Constraint clauses have a standard form, which is based on the constraint normal form. Clauses do not offer the full expresionality of the logic but they offer easy computational manipulation.
A constraint clause is a logical statement of the form:
Head :- {C1,...,Cn},Body
Where “Head” is an atom, “C1,...,Cn” are D-domain constraints and “Body” is a conjunction of atoms.
A D-domain constraint is a relation defined on a specific domain (Euclid contains a number of different domains). Syntactically it is an atom with some restrictions on the terms it contains.
Euclid code would appear something like this:
1 gravity_force_field(M,G,F):-
2 reals([M,G]),
3 formula(F),
4 F=(M*G)//X.
5 Object_dynamics(F,M,A):-
6 Formulae([F,A]),
7 Real(M),
8 (1/M)*F=A.

Here the program is made of...

Page 1 of 2 Next >

Essays related to Euclid

Loading...