% Description: This file contains a long list of examples demonstrating the abilities of
% the translator. Most of these examples come straight from the MathML spec. They
% are part of those used during the development of the interface and should all
% be correctly translated into OpenMath.
%
% Version 17 April 2000
%
% Author: Luis Alvarez Sobreviela
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% These examples attempt to test the following aspects:
%
% - Types of arguments
% - Containers
% + sets
% + vectors
% + intervals
% + matrices
% - Sums, products
% - Calculus
% - Lambda expressions
% - Limits
% - Quantifiers
% - Set functions
% - MathML1 Relational operators
% - Statistics
% - Functions on Matrices
% - Various general expressions
% - Complex expressions
% Expressing different types of numbers
mml2om();
6
3
mml2om();
6
3
mml2om();
10
6
% Containers.
mml2om();
2
mml2om();
2
mml2om();
mml2om();
mml2om();
mml2om();
2
mml2om();
1
2
3
% Must make sure these elements translate
% to the correct OpenMath symbols.
% The MathML interval maps to different
% OPenMath symbols.
mml2om();
2
mml2om();
2
mml2om();
2
mml2om();
2
% Matrices
mml2om();
0
1
0
0
0
1
1
0
0
mml2om();
0
1
0
0
0
1
1
0
0
% The following operators need to be carefully
% monitored because OpenMath has different
% representations for such elements.
% sums, products
mml2om();
mml2om();
mml2om();
% Calculus
mml2om();
mml2om();
2
mml2om();
mml2om();
mml2om();
mml2om();
mml2om();
0
1
2
mml2om();
1
mml2om();
mml2om();
% Lambda expressions
mml2om();
% Limits
mml2om();
0
mml2om();
mml2om();
0
mml2om();
0
mml2om();
% Quantifiers
mml2om();
2
mml2om();
% Set functions.
mml2om();
mml2om();
2
2
4
mml2om();
mml2om();
2
2
4
% MathML1 relational operators. The attributes
% are unecessary, and so the parser should ignore
% them
mml2om();
mml2om();
mml2om();
mml2om();
mml2om();
mml2om();
mml2om();
2
2
2
mml2om();
2
mml2om();
2
2
mml2om();
2
mml2om();
2
2
2
mml2om();
2
mml2om();
2
2
2
mml2om();
2
mml2om();
2
2
2
mml2om();
2
mml2om();
2
2
2
mml2om();
2
% Statistics
mml2om();
2
4
mml2om();
2
4
mml2om();
2
4
% Functions on matrices
mml2om();
3
1
5
7
0
2
1
7
8
mml2om();
3
1
5
7
0
2
1
7
8
mml2om();
1
1
2
3
4
mml2om();
2
2
1
2
3
4
mml2om();
1
2
mml2om();
1
2
3
4
1
2
1
2
2
3
2
1
2
1
1
1
% A variety of different expressions
mml2om();
3
7
mml2om();
mml2om();
mml2om();
2
mml2om();
2
mml2om();
2
mml2om();
3
mml2om();
2
2
mml2om();
3
mml2om();
3
% Complex expressions
mml2om();
1
1
mml2om();
2
2
2
2
2
1
mml2om();
mml2om();
1
2