MATH Demos

# Arithmetic Functions (MATH) Sample Demo

## Location

`$NitroSDK/build/demos/math`

## Compilation

Move to the `$NitroSDK/build/demos/math` directory and enter

> `% make`

Executable (`.nef`, `.srl`) files will be generated in

> ``$NitroSDK/build/demos/math/sample_name/bin/platform/target/``

For example:

> `$NitroSDK/build/demos/math/test/bin/ARM9-TS/Release/`

## Execution

Move to the `$NitroSDK/build/demos/card/sample_name/bin/platform/target/` directory and do one of the following.

- Execute `*.nef`, `*.srl` with ensata.
- Load and execute a `*.nlf` file with IS-NITRO-DEBUGGER.
- Execute a `*.srl` file with IS-NITRO-DEBUGGER

## Description

`misc-1` | Tests the operation of various math functions. The results are displayed on the debug output.
`rand_lc` | Random number test using linear congruential method.
`qsort` | A test of the quicksort function. When the A Button is pressed, it rearranges data generated with random numbers.
`fft-1` | Carries out an operational test for the fast Fourier transform function. The results are displayed on the debug output.
`fft-2` | Applies mask input to the fast Fourier transform function and carries out spectral display.
`dgt-1` | Tests the operation of the message digest and hash functions. The results are displayed on the debug output.
`dgt-2` | Compares the operation speed of the message digest and hash functions. The results are displayed on the debug output.

## Operation

`Operates normally in all operating environments.`

## See Also

`MATH Features List`

## Revision History

07/05/2005 Added description about fft-2 demo.
05/13/2005 Added description about fft-1 demo.
05/10/2005 Added description about misc-1 sample.
04/18/2005 Added descriptions for `dgt-1`, `dgt-2` demos.
04/12/2005 Added `qsort` demo.
03/02/2005 Revised descriptions to reflect current support environment conditions.
12/15/2004 Initial version.