External array from Flanagan's library
Source code name: "flanagan_array.py"
Programming language: Python
Topic: Data arrays/Cloud
DMelt Version 2.29. Last modified: 03/03/2021. License: Free
https://datamelt.org/code/cache/flanagan_array_8175.py
To run this script using the DataMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.


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