Below is a link to something I did today with Maple.
I'm relatively new to Maple and am only familar with a handful of it's built-in functions, so a lot of what is shown in the worksheet could probably be done a lot easier - for example I think Jacques, as an answer to a question of mine here, was suggesting that using Maple tables might be a better way of doing what I did here with arrays. Anyhow, I had a lot of fun doing it the way I did, and I thought maybe someone here might find something in it useful, or may just like to have a look at what a "newbie" such as myself might be doing with Maple.
Two questions, please excuse the sloppy explanations -
If I do the followig:
myArray := array(1 .. 5):
myArray := 4
myArray := 5
How do I find out which elements in the array are empty? I can't seem to get something
like IsZero to work for this even if I load ArrayTools and use Array instead. For example
for i from 1 to 5 do
if myArray is !empty then print(myArray[i: end if
Is there a way to dynamically resize an array? For example, to make something
like the following work, starting with an array with a single element:
I'm relatively new to Maple so the answer to this question may be simple.
Why do I not get the expected results of 23.30 and 24.40 when displaying the Matrix? The results are the same if I declare it as an Array.
myMatrix := Matrix(1 .. 1, 1 .. 2, datatype = float);
myMatrix[1, 1] := 23.30; myMatrix[1, 2] := 23.40;
[ 23.3000000000000007 23.3999999999999986 ]
Something I hadn't tried until today was calling into a DLL with Maple. I was surprised at how easy it is. Once inside a DLL, the sky is pretty much the limit as far as passing the data around between applications for realtime plotting and even passing to device drivers for other processing or even I/O in WinXP.
Has anyone tried installing Maple within WinXP installed as on OS in Microsoft's Virtual PC 2007 running in Vista? It seems like it should run just the same as it would in normal WinXP. I've run Win98 in the Virtual PC 2005 running on WinXP Professional with no problems.
This would allow Maple to run on the same system as Vista, even though it wouldn't make use of anything relating to additional RAM, additional CPU's, or whatever. Flipping between the two is very easy and it's even possible to share files between the native OS and virtual - at least with Virtual PC 2005 in case one wanted to do something with Maple output files within a program running on Vista.