5 An utilities that is used by Mint.
10 This class represents an expression.
12 expression = Mint::Expression.new('5 div 4', expression_tree)
13 p expression.to_s #=> '5 div 4'
14 p expression.to_maxima #=> '5 / 4'
15 p expression.to_latex #=> '5 \div 4'
16 p expression.normalize #=> '5 div 4'
19 This class builds expression from string.
21 input = Readline.readline('>')
23 answer = Mint::Builder.build(input)
27 puts 'Please check your answer.'
31 Factory generates problem generator.
33 Mint::Factory.create(:arithmetic)
34 #=> #<Mint::Generator::Arithmetic>
40 You must inheritance this class.
41 and over wirte #generate_problem method.
44 ==== HighOrderExpression
49 Mint::Solver.set_engine Mint::Solver::Engine::Arithmetic
50 Mint::Solver.solve('1 + 1')
57 You must inheritance this class.
58 to make original engine.
59 and over write #solve method.
66 Move description to code.