acer

32333 Reputation

29 Badges

19 years, 321 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

@serge17 Did you try specifying the precise location when you call the save command?

For example,

    save G, "C:\\\\Users\\Serge\\foo.m" ;

or some other location.

@mmcdara Sorry, I interpreted the first part of your question as meaning that you wanted to use it as a predicate (to test for the quality). Now I understand that you want it actually to split the terms.

(I think its a little clumsy to use the a=... and f=... form in the return as you described, but it should be obvious how to change that. It's just a matter of style. It would be a little cleaner without it, I'd suggest.)

This solution uses the same basic mechanisms as my earlier answer: selectremove and depends. Indeed the key part is essentially the same as before, except I use not to switch the position.

I have assumed that you always have an expression which is actually a product, mostly because you didn't state whether you wanted case of a non-product rejected or handled as 1*expression.

restart;

F := proc(ee::algebraic, nm::name)
       Equate([a,f],[selectremove(not depends,ee,nm)]);
end proc:

F( (A+B)*(t^2+y), t );

[a = A+B, f = t^2+y]

F( (A+B)*(t^2+y)*t^5, t );

[a = A+B, f = (t^2+y)*t^5]

F( (t^2+y)*t^5, t );

[a = 1, f = (t^2+y)*t^5]

F( (A+B)*c*(t^2+y)*t^5, t );

[a = (A+B)*c, f = (t^2+y)*t^5]

F( 3*t,t );

[a = 3, f = t]

Download star_split.mw

Without the a=... and f=... aspect the above could be, say,

restart;

F := proc(ee::algebraic, nm::name)
       [selectremove(not depends,ee,nm)];
end proc:

F( (A+B)*(t^2+y), t );

[A+B, t^2+y]

F( (A+B)*(t^2+y)*t^5, t );

[A+B, (t^2+y)*t^5]

F( (t^2+y)*t^5, t );

[1, (t^2+y)*t^5]

F( (A+B)*c*(t^2+y)*t^5, t );

[(A+B)*c, (t^2+y)*t^5]

F( 3*t,t );

[3, t]

Download starsplit2.mw

@Scot Gould The MapleNet backend which this site still uses to render uploaded worksheets dates from the Maple 18 timeframe.

@Lisa6 You get that message for with(FGb) because the directory containing the .lib and .ind files are not part of the value of libname.

 

@Lisa6 Why are you trying to call march on the .lib file?! There is no reason for you to do that. Don't try and Open that file using the Maple GUI.

I already gave you a URL link to the Help page on initialization files in my previous Reply. Did you read it?

Someone just posted a separate Question about initialization files on Linux, to which I posted an Answer. Try reading that.

If you don't know how to create and edit and save a plain text file in your own Linux operating system then I suspect that you are far out of your depth.

@Lisa6 The instructions on that site are reasonably clear.

It instructs you to adjust libname, so that it includes the location of the .lib/.ind files (and it describes doing that in a Maple initialization file, which would make it default for future Maple sessions).

If you don't understand what libname or initialization files are then you could read about them on their help pages. Maple's Help pages are also accessible directly from within Maple.

@tomleslie So what? The expanded form is not the same expression.

It follows that expanding/factoring/combining should be done beforehand by the user, according to intention.

@mapleuser9 Where is your uploaded worksheet, as an attachment here, whic Rouben mentioned?

Please answer my query about the value of libname.

@Lisa6 Why do you have those < and > symbols in the `mv` ?

Surely you're supposed to use the actual locations. You have mixed that up with pseudocode in a generic instruction.

@Carl Love I don't understand what you mean, sorry. The list L was only used to generate CL, and the substitutions depend on CL rather than L, so I don't see why the order of L should matter.

You might also let us know what the value of libname is, in case you didn't actually make a typo.

If libname looks wrong then it might help to know how you launched Maple.

@johnksellers As mentioned in the Question body, the problematic situation occurs when 1D plaintext is pasted into a 2D Input area. In contrast, when I type theta__xy into a 2D Input area then it automagically typesets.

So, where are these involved 1D plaintext expressions coming from, that you are pasting into 2D Input areas? (I'm trying to figure out whether it makes sense to consider any kind of batch process, but that doesn't make sense for all scenarios.)

By the way, the Escape mechanism in 2D Input mode activates 2D command-completion. It's a combination of Java GUI and Library-side mechanisms, so I don't think that you'd be able to locate and adjust it.

But command-completion is very useful in other 2D input situations, and I thought I might mention that here. Suppose one wants to enter a typeset 2D definite integral. In 2D Input mode simply type in the letters Int (or int) and then press the Escape key. The command-completion popup should appear, containing several alternatives including templates for both definite and indefinite integrals, etc. I find it similarly useful for entering units (I type Unit and then Escape, and then get a generic unit braced-input template). And so on.

@manju If you have followup queries about making that package work then put it here, not as a separate Question.

I have deleted a duplicate of this topic, in which you address the same idea but with multithreading.

Don't post duplicates of question threads. (This was mentioned to you earlier.)

What do you mean by "export"?

Are you exporting with a command, or copy&pasting, or simply saving output, or what? Please be explicit.

First 169 170 171 172 173 174 175 Last Page 171 of 591