Thomas Richard

Mr. Thomas Richard

3255 Reputation

13 Badges

15 years, 104 days
Maplesoft Europe GmbH
Technical professional in industry or government
Aachen, North Rhine-Westphalia, Germany

MaplePrimes Activity


These are answers submitted by Thomas Richard

If that's Windows 7, please note that officially it was only supported from Maple 13.02 on. I recall Maple 12 installation went fine anyways, but e.g. the File dialogs were incomplete. What you describe may be another side effect.

Consider upgrading to the current Maple version, then context menus should work fine.

Please see ?backslash. Since the single backslash is interpreted as the escape character, you need to either use doubled backslash or single forward slash in file names:

"Z:\\2_Boulot\\tabledeparametrage.xls"

or

"Z:/2_Boulot/tabledeparametrage.xls"

Apart from the drive letter, this will work on Windows and the other supported OSes.

If your Fortran code has been compiled to a shared library (.DLL under Windows, .so under Linux or Mac OS X), Maple can access that via "External Linking". Please see the ?define_external help page for a start.

The rest of your approach (using text files and output redirection in the shell) should be unnecessary then.

Some hints:

At the very beginning, you set digits:=50 without using it anywhere else. If you meant to set Maple's environment variable, that's Digits. Recall that Maple is case-sensitive. But using evalf[prc] later on is perfectly okay.

If you change f(r):=sin(r) to f:=r->sin(r), you will avoid ambiguity in the interpretation.

In the subsequent evalf calls, subs(r=a,f(r)) can be simplifed to f(a), likewise for b.

And there may be more such little bits. I stopped here.

About numerical performance:

Maple 18 introduced hardware-based numerical evaluation of Bessel functions; see here. On my computer, the evalf call at the beginning of the Numerical Result section was much faster in version 18 than in 17 for higher values of N, but I didn't measure it thoroughly.

Apart from that, your FR procedure probably leaves room for optimization. Did you try options like autocompile, hfloat, etc.?

I'm not a MATLAB expert, but AFAIK this is a limitation of its matrix file format (or formats, there are several different ones). Hence the ExportMatrix documentation explicitly says that only numeric data can be written.

So try a different format, e.g. csv or delimited. I'm confident MATLAB will be able to import that as well. How that's interpreted is a different question, probably off topic here.

I have never seen this phenomenon, but I suggest that you contact nordic-support@maplesoft.com with some more details (OS X version, Maple 18.01 installed yes or no, install logs attached, etc.). Good luck!

... note you can squeeze the equation a bit, which makes it easier to read (IMHO):

Eq1 := simplify(Eq1,size);

I suppose you have seen the documentation at ?algcurves,puiseux. What exactly is your question?

You can obtain some diagnostic output by setting infolevel[algcurves]:=5 before calling that routine.

Just a note in case you want to construct Bernstein polynomials: they are already implemented in Maple. Please see ?bernstein then.

Handling of boundary conditions in pdsolve (exact solutions) was added in Maple 14. See e.g. here. So it's unlikely that your Maple 13 returns a correct solution for such inputs.

 Edit: here's the input in text form for copy&paste; it runs fine in current versions:

restart:
with(PDEtools):
U := diff_table(u(x,t)):
pde[2] := U[t]=kappa*U[x,x];
bc[2] := u(0, t) =0, u(L, t) = 0;
sys[2] := [pde[2], bc[2]];
sol[2] := pdsolve(sys[2]);
pdetest(sol[2],sys[2]);

There was no screenshot uploaded to MaplePrimes. Could you try again?

If it's not the issue covered in our FAQ, I suggest that you contact our tech support team at support@maplesoft.com. Please provide some more information (OS version, install log; did it work correctly in the past?).

Switch to text mode via keyboard shortcut Ctrl+T or menu item Insert > Text. What you type then won't be affected by hiding the input.

To go back to 2D math, use Ctrl+R or the Insert menu again.

writeto is the wrong command here; please see its description: "[...] writes the output of all subsequently entered Maple commands [...]". So it is for capturing (parts of) a session.

One suitable way is this:

FileTools:-Text:-WriteFloat("pi100.txt",evalf[100](sqrt(2)));

You will have to call FileTools:-Text:-Close("pi100.txt") before viewing the file in a text editor, otherwise it will be empty. The same effect can be achieved by using Maple's restart (command or button).

Description and download link can be found here.

Did you install the 17.02 update? I think the problem with } was fixed in 17.01 already, which is included in 17.02. Please see here.

For international keyboard layouts, you can then simply press Alt+Enter to invoke inline evaluation. (This is documented from Maple 18 on, under ?2DMathShortcutKeys.)

It's not possible to change the shortcut keys. Howvever, you can always use the "Edit > Evaluate and Display Inline" menu item alternatively.

First 26 27 28 29 30 31 32 Last Page 28 of 43