p expression.to_latex #=> '5 \div 4'
p expression.normalize #=> '5 div 4'
-=== Mint::Builder
+== Mint::Builder
This class builds expression from string.
input = Readline.readline('>')
puts 'Please check your answer.'
end
-=== Mint::Factory
-Factory generates problem generator.
-
- Mint::Factory.create(:four_arithmetic)
- #=> #<Mint::Generator::FourArithmetic>
-
-=== Mint::Generator
+== Mint::Generator
Problem generator.
-==== Base
-You must inheritance this class.
-and over wirte #generate_problem method.
-
-==== FourArithmetic (Example)
-For four arithmetic operations.
-:rage option is required.
-
- generator = Mint::Factory.create(:four_arithmetic)
- generator.generate(:range => (1..15), :length => 3)
+=== Factory
+Factory generates problem generator.
-=== Mint::Solver
+ Mint::Generator::Factory.create(:ordinary_arithmetic)
+ #=> #<Mint::Generator::OrdinaryArithmetic>
+
+* Base
+ * ArithmeticBase
+ * OrdinaryArithmetic
+ * DecimalArithmetic
+ * FractionalArithmetic
+ * FractionalExpressionArithmetic
+ * High_orderExpression_base
+ * Factorization
+ * Expansion
+ * PartialFractionExpansion
+
+== Mint::Solver
Problem solver.
- Mint::Solver.set_engine Mint::Solver::Engine::FourArithmetic
+ Mint::Solver.set_engine Mint::Solver::Engine::Arithmetic
Mint::Solver.solve('1 + 1')
#=> 2
-==== Engines
-Solver engine
-
-===== Base
-You must inheritance this class.
-to make original engine.
-and over write #solve method.
-
-===== FourArithmetic (Example)
-Four arithmetic operations solver engine.
-
-== TODO:
-Move description to code.
+=== Maxima
+Use Maxima to solve problem.
+
+===== Factory
+Factory generates problem solver.
+
+ Mint::Solver::Maxima::Factory.create(:ordinary_arithmetic)
+ #=> #<Mint::Solver::Maxima::OrdinaryArithmetic>
+
+* Base
+ * ArithmeticBase
+ * OrdinaryArithmetic
+ * DecimalArithmetic
+ * FractionalArithmetic
+ * FractionalExpressionArithmetic
+ * High_orderExpression_base
+ * Factorization
+ * Expansion
+ * PartialFractionExpansion