# Math Interactivemint-servermint-lib

• R/O
• HTTP
• SSH
• HTTPS

## mint-lib: Resumo do Repositório

Math Interactive's library

### Recent Commits

Rev. Hora Autor Mensagem
c2308e2 2010-05-10 15:00:31 Tomohiro Nishimura master refactoring decimal method
df74c42 2010-05-10 14:47:29 Tomohiro Nishimura add Rakefile into gem
2a36b02 2010-05-10 14:43:33 Tomohiro Nishimura fix zero-division bug in decimal_arithmetic
25870f4 2010-04-19 02:22:00 Tomohiro Nishimura improved problem that was generated by fractional_arithm...
5e80daf 2010-04-19 02:08:37 Tomohiro Nishimura fix fraction with minus numerator bug
fe1f67b 2010-04-16 11:54:23 Tomohiro Nishimura improved fractional_arithmetic generator
cec1a6e 2010-04-16 11:28:39 Tomohiro Nishimura refactored
ff591cf 2010-04-15 18:26:07 Tomohiro Nishimura fix fraction with parenthesis bug
9517364 2010-04-15 17:49:39 Tomohiro Nishimura fix is_lowest_term? method for irreducible fractions
2e0cb43 2010-04-15 12:02:43 Tomohiro Nishimura square_root_arithmetic generates more solvable problems

### Branches

Nome Rev. Hora Autor Mensagem
master c2308e2 2010-05-10 15:00:31 refactoring decimal method

# mint-lib¶ ↑

## Description:¶ ↑

An utilities that is used by Mint.

## Mint::Expression¶ ↑

This class represents an expression.

```expression = Mint::Expression.new('5 div 4', expression_tree)
p expression.to_s #=> '5 div 4'
p expression.to_maxima #=> '5 / 4'
p expression.to_latex #=> '5 \div 4'
p expression.normalize #=> '5 div 4'
```

## Mint::Builder¶ ↑

This class builds expression from string.

```input = Readline.readline('>')
begine
#=> Mint::Expression
rescue
end```

## Mint::Generator¶ ↑

Problem generator.

### Factory¶ ↑

Factory generates problem generator.

```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::Arithmetic
Mint::Solver.solve('1 + 1')
#=> 2
```

### 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