# This example shows how to download a jar library,
# dynamically load it and execute a class from the downloaded library.
# The downloaded jar will be located in lib/user directory.
# Second execution will skip download
# Class to demonstrate the fourth order Runge-Kutta method in class RungeKutta.
# Michael Thomas Flanagan
from jhplot import Web
url="https://www.ee.ucl.ac.uk/~mflanaga/java/flanagan.jar"
print "Loading ",url
print Web.load(url)
from flanagan.math import ArrayMaths
# create an array
ar=ArrayMaths([10,28,2,3,4,4,5,6,6,7,88])
print "Index of minimum is ", ar.minimumIndex()