Provides a domain specific language (DSL) for math engineering (mat=
lab-like syntax).
## Module Overview

### Team Members

## Download

### Distributions

### Installing

### Pre-requisites

## Documentation

------=_Part_14344_238895098.1413980830406--
GroovyLab is a set of Groovy classes and Java libraries. It provides com= mon linear algebra and plot static methods easily usable in any groovy scri= pt or class.

GroovyLab is fully usable, but still in development status. It is based = on JMathTools Java API (based on JAMA and RngPack).

- Yann Richet - Contributor to JMathTools Java project

GroovyLab is just provided to start a math engineering DSL sub-project o= f Groovy. If you need GroovyLab, GroovyLab also needs you...

Source release available at GroovyLab website

Just extract the GroovyLab archive, and try to run examples cases using = groovylab.bat or groovylab script: '

- groovylab examples/simpleTest.gvl
- groovylab examples/moreTest.gvl

GroovyLab is based on Groovy 1.1 and Java 1.5.

The following example shows GroovyLab in action:

=20

import static org.math.array.Matrix.* import static org.math.plot.Plot.* def A =3D rand(10,3) println A plot("A",A,"SCATTER")=20

=20

import static org.math.array.Matrix.* import static org.math.plot.Plot.* def A =3D rand(10,3) =09=09// random Matrix of 10 rows and 3 columns def B =3D fill(10,3,1.0) =09// one Matrix of 10 rows and 3 columns def C =3D A + B =09=09=09// support for matrix addition with "+" = or "-" def D =3D A - 2.0=09=09=09// support for number addition with "+"= or "-" def E =3D A * B=09=09=09// support for matrix multiplication or division def F =3D rand(3,3) def G =3D F**(-1)=09=09=09// support for matrix power (with integers only) println A=09=09=09=09// display Matrix content plot("A",A,"SCATTER")=09// plot Matrix values as Scatte= rPlot def M =3D rand(5,5) + id(5) //Eigenvalues decomposition println "M=3D\n" + M println "V=3D\n" + V(M) println "D=3D\n" + D(M) println "M~\n" + (V(M) * D(M) * V(M)**(-1))=20