Items tagged with files files Tagged Items Feed

From http://www.maplesoft.com/view.aspx?SF=87640/0 \ Simple_Harmonic_Moti.mws
In several attempts I have downloaded the maple worksheet Simple_Harmonic_Moti.mws.
When I try to open I get the following message:

link imagen

How to proceed to execute the worksheet?

Hello,

For a face recognition program I need to import all the jpg files that are in a map
on the hard drive. I can already do this by f(i):=Read("C:xxx\\xx\\xxx\\xxx.jpg"); 
that gives f(i) a single jpg file.
But this requires every file to be imported separately. Is there a way to import all the jpg
files from that map?
e.g. f:=Read("...\\*.jpg"); that would give f a list of all the jpg files in the map.

KR 

Hi,

I am currently writing a Python program which takes a Maple Worksheet and evaluate the commands in the terminal version of Maple. However, I have trouble figuring out how the input is formatted. As an example I have following XML code in a .mw file:

<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">
<Equation executable="true" style="2D Input" input-equation="A := 4;"
display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5n\

Unable to open these maple files, please help

I want to plot the zeros of an ODE dependent on the change of a parameter of the ODE. My idea is to make a loop where i save the zeros to the given parameter into a file, so that i get multiple files with the zeros in it, and then make a plot with the parameter as x coordinate and the zeros as y coordinates. How can i make this possible in Maple? How can i set a variable filename, for example "parameter name = value".txt?

I've got the problem of warnings polluting my text outputs.

If I use interface(warnlevel = 0) the warnings are suppressed in the terminal but not in the files exported by the writeto command.

A sample:

> restart;with(CodeGeneration); with(plots); with(ListTools); with(FileTools);
> Matlab(u(1) = 3);
Warning, the function names {u} are not recognized in the target language
cg = u(1) == 3;
> interface(warnlevel = 0); Matlab(u(1) = 3);

How do I update  Maple 5 version  files ( or programs)  to the Maple 14  version ? . I mean I've done a lot of programs in the  Maple 5 version many years ago and now ( using   Maple 14 version) I can't visualize my  complete equations and worst my graphics .Could you help me ?

He guys!

I had Maple 11 installed on my Mac, and yesterday upgraded to Maple 15, which was installed in a separate folder. My question is if I now can uninstall Maple 11 from my computer, or will Maple 15 need the files, since it was an upgrade, and no full version?

If I can uninstall it: How do I do it properly? I'm on a Mac with OS X 10.6. Maple 11 is installed in a separate folder in the applications folder. There is no uninstall file however. Is just dragging...

I Have a proc that creates some very long lists.
I would like to be able to store each of these lists with the same name in different indexed files.

What I would like to do looks something like...

fd:=["file1.m", "file2.m", ..., "filen.m"]

for i from 1 to n
do
proc(user defined variables)
save variable1,vaiable2, ...,variablem, fd[i]
end do:

This however doesn't work.

I would then like to be able then to run proceedures on these variables from each file.

A couple of days ago I found out that gzread from the zlib library can be used for fast reading of binary files in Maple from the disk to memory - about 100 times faster than readbytes - something like in the following simplified example, 

A:=Array(1..2^26,99,datatype=integer[1]):

time(writebytes("A",A));close("A");

                                9.360

B:=Array(1..2^26,1,datatype=integer[1]):
time(readbytes("A",B));close("A");

                                8.065
B[1],B[-1];

                                99, 99

myreadbytes:=proc(f)
local gzopen, gzread, gzclose, n, p, A;
gzopen:=define_external('gzopen',
    'path'::string,
    'mode'::string,
    'RETURN'::integer[4],
    'LIB'="zlibwapi.dll");
gzread:=define_external('gzread',
    'file'::integer[4],
    'buf'::REF(ARRAY(datatype=integer[1])),    
    'len'::integer[4],
    'RETURN'::integer[4],
    'LIB'="zlibwapi.dll");
gzclose:=define_external('gzclose',
    'file'::integer[4],
    'RETURN'::integer[4],
    'LIB'="zlibwapi.dll");
n:=FileTools:-Size(f);
A:=Array(1..n,datatype=integer[1]);
try p:=gzopen(f,"rb");
if gzread(p,A,n)=n
then return A end if
finally gzclose(p)
end try
end proc:
time(assign(C=myreadbytes("A")));

                                0.062

C[1],C[-1];

                                99, 99

'time(myreadbytes("A"))'$5;


                  0.078, 0.062, 0.046, 0.046, 0.046

E:=Array(1..2^26,2,datatype=integer[1]):
time(ArrayTools:-Copy(A,E));

                                0.093

That needs some tweaking, because that works only on uncompressed files. If a file ("A" in this example) was gzipped, then the gzread would ungzip n (uncompressed) bytes in it in this example, instead of copying it into the memory - but it is not a big deal, in general.

Does anybody know about a similar replacement for writebytes? gzwrite doesn't work for copying (it compresses the array.)

I used the zlibwapi.dll library from http://www.winimage.com/zLibDll/index.html, it is a version of zlib 1.2.5 (written by Jean-Loup Gailly and Mark Adler) built by Gilles Vollant. The code is for a 32-bit system (Windows). That should work in 32-bit Linux after replacing that dll with standard libz.so.1, as well as on 64-bit systems after replacing integer[4] with integer[8] in most places.

Graphics output

August 30 2010 by RNiven 20 Maple

Whilst I am glad that Maple have finally fixed their pdf and eps plot output with version 13 (corrupted on the Mac since version 10), I would like to re-ask the question asked by peterschmid 4 in 2006: how can I control the output size of the plot?  The plotsetup options axiswidth, axisheight, width, height, appear to have no effect.

Please note that I use Maple for academic publishing, and I wish to automatically generate graphs and export them as eps files....

I was able to find over 1000 files that were missing from the new MaplePrimes. I did some spot checking and it appears that the vast majority of files are now intact. 

I did see some posts where the files are still missing. If I come across a backup containing additional files, I will restore them as well and post about the recovery here.

I have just published a new update to MaplePrimes. This fixes a number of issues and ads a couple of new features.

  • Autocompletion of tags now works. When you are typing a tag in, a list of possible completions appears, you can click or arrow down to select one of these tags.
  • We have added a new Products list. This shows all Maplesoft products that have Posts or Questions associated with them. This link has been added to the top bar, the Tags link has been moved to the "More" drop down. 
  • The ordering on the Recent pages has been fixed to sort by last action date descending.
  • You can now view tags such as 2Dmath
  • Paging has been fixed for many sections of the site including the tag details page
  • If you choose to upload files when editing an item, the new file will now work correctly.
  • If you choose to convert your Comment into an Answer, you now have the ability to choose the correct parent for that comment.

Some Posts and Questions contain broken links to files uploaded in the "old Mapleprimes". We've heard that some files (eg. image files) may be irretrievably gone.

But here is a curious page. It had an associated .mw worksheet uploaded. And the link to the uploaded .mw is now broken/stale, at the moment that I write this. But the link to view it with the maplenet viewer, in one's browser, still works. Not only that, but the .mw worksheet can be saved from within that viewer (via a URL distinct from the broken link on the Post).

Recently, Markiyan Hirnyk asked how to find all Hamiltonian cycles in a graph using Maple.

Here is a procedure using Ham Cycle unix tool (which is GPLed) in Windows.

First, one has to download it from the link above and put in his/her cygwin home directory, /cyg/home/Alec for me. Then start cygwin shell, extract the downloaded archive and cd to the extracted directory,

1 2 3 4 5 6 7 Last Page 1 of 54