acer

32647 Reputation

29 Badges

20 years, 57 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

Please upload and attach code that produces a 3D plot of the structure you want, as well as the Matrix representing the color.

You can use the green up-arrow in the Mapleprimes editor to upload and attach a .mw worksheet file.

It's not so useful to provide a mere image of code that does the opposite of what you want to do. At the very least tell us which plotting command you want to use, and what arguments and options you're passing to it.

@C_R Why do you "have" to use alias, as opposed to assignment?

(I guess that I don't know what all your scenarios are for using this.)

Please put followups on these examples here, not in wholly separate new Questions threads.

Duplicate Questions get flagged as such and then may be deleted.

Is your newer material something that would be better as a followup Comment/Reply/addition to your earlier Post? Or something for which you could better use the Branch button from your earlier posting, so that the two automatically get cross-reference links added by the system.

@C_R The OP has expressed concern with the GUI launch time. He's written that that is an "overall" concern because of some need for multiple launches.

There was no specific mention by the OP of wider spread performance degradation, although the OP might have intended to convey concern about GUI performance more generally.

I agree that the topic of a performance test/example suite is interesting (and has been discussed before), but the OP's specific example is not about the computational engine/kernel.

For what it's worth, in Linux at least a value of the GUI's startup time is stored (upon full GUI closure) in the "Length of Startup in ms" field of the GUI preferences file. Perhaps it's stored on Windows too.

I suspect that the value represents the last individual timings, as opposed to any kind of average. So, likely varying slightly.

On my Linux box (quad core i5-7400 CPU @ 3.00GH), my ~/.maple/*/maplerc files together have this data:


Has anyone got widely different values for M2024 vs M2025, and if so then what's the platform?

1) I don't run any startup or initialization code for these examples.
2) My M2025 is an earlier beta, so ymmv.

An Explore of an IterativeMaps:-Escape call.

Escape_ex1.mw

(fun, except when it crashes...)

@mmcdara I suggest you submit an SCR for it, thanks.

I see the problem on Linux as well.

If I remove all output from the worksheet and restart then the GUI renders the problematic plot once, and then rerendering that plot's output again shows the error notice. And that process can be repeated, without closing the worksheet.

@Scot Gould The preferences all appear to be in order. It seems like a new GUI bug, specifically for opening via the launcher.

I suggest that you submit a bug report.

@Tom GIV That's great that it's working for you.

You might now wonder how you could automate the augmenting of libname, so that it's not needed to be explicitly entered in each session (or after restart).

Here are a few different ways, of which you could choose one:

1) First find what is the resulting string from this Maple command,
         cat(kernelopts('homedir'),"/maple/toolbox");
     Then concatenate/append that with, say,
         "/myKinProject/lib"
      and create such a folder in your OS.
      (note: Maple understands forwardslash on all platforms. It makes it easier than
       having to deal with escaping "\" by having double backslashes. But of course
       you'll know how to make such a folder in your OS, using its filemanager, etc.)
      If you put your .mla in that folder then after full closure and relaunch
      of Maple that location should appear in libname.
1b) You also add a Maple version number as another layer to that location, eg.
           toolbox/2024/myKinProject/lib
       That makes it get added in just that version.
2) Put your previous manual call like,
         libname := "C:\\Users\\tom\\Documents\\MyEquil.mla",libname;
    in a personal initialization file. See the Help topic,
         worksheet,reference,initialization
3) (not recommended by me) Put your .mla file in a folder already in libname,
     eg. the result from this,
         cat(kernelopts('mapledir'),"/lib");
     I don't like that because I dislike tinkering with my Maple installation if I
     don't have to. Also, you have to remember you did this when you upgrade.

And, lastly, you might not want the contents of your .mla archive to be
available (assigned names, etc) in every Maple session. You can get finer
control by making your procedure the export of a package module. Eg. in your
build session,

MyEquil := module()
    option package;
    export KinAddCurveData;
    KinAddCurveData := what_you_had_working;
end module:

and then LibraryTools:-Save on MyEquil instead of on KinAddCurveData. Then
you can utilize it in your other sessions by doing either,

   with(MyEquil);
   KinAddCurveData();

or just,

    MyEquil:-KinAddCurveData();

Using a package controls your global namespace, eg. If you have many such
procedures assigned to names then the global names don't have those values/bindings
automatically. But the usage is like for other stock packages.

So, you can get flexible control, if you'd like.

@Scot Gould Sorry, I mistyped! I meant to have written that the GUI's Options setting,
   "Open worksheets in" -> Tab
corresponded to the preferences file item,
   MDIOnOpenAndNew=true

So, what happens if you File->Open multiple files from within the GUI, as opposed to from the desktop launcher? Does it open them all in tabs, or in separate windows?

Can you open the very same .mw file more than once, concurrently, using the desktop launcher?

If you open the desktop launcher icon's Properties and examine its call to Maple (text code), does it pass any opens to the Maple executable?

ps. Have you tried the (legacy) accesibility GUI in your M2025? (Basically, the old Java GUI, IINM.) I'm not suggesting that you switch; I'm just interested in whether the problem is there too.

pps. I like to think that here we all have far more in common than we have differences.

@dharr It seems to me that if efficiency is the concern then the OP could inform us whether he really needs all the results up front, or whether his goal might involve iterating across them.

The .mla approach would be the sophistacated way, which avoids actually recreating the call_external produced by define_external.

An easier approach would be to simply put your working define_external code inside a plaintext file and then use the read command on that in any new session, to call your procedure by name. (That's similar to what you were trying before, except that you were trying to use read with a .mw worksheet file.)

Sometimes people use the filename extenstion .mpl for such plaintext files. That's just a convention.

@mmcdara Yes, Prandtl number was my guess.

I think that the OP ought also to double check all the rest of his two formulas thoroughly, given the mistakes, before too much time is spent fiddling with the first parameter set.

@dharr In Maple 2023 it seems to suffice to assume that w>0 in order to get a explicit result from inttrans[fourier] here.

But without any assumptions the fourier call returns unevaluated. Perhaps the OP originally had used assume, etc.

Collecting the result w.r.t. hypergeom tidies it up quite a bit.

If w<1 is also taken, or if all variables are taken as real (evalc), then further simplifications are possible.

Fourier_ac.mw

First 13 14 15 16 17 18 19 Last Page 15 of 597