nm

3806 Reputation

17 Badges

8 years, 19 days

MaplePrimes Activity


These are questions asked by nm

I installed the shared library from http://www.maplesoft.com/applications/view.aspx?SID=1691

and it seems to have loaded ok. Now I can do

with(share);
See ?share and ?share,contents for information about the share library
                               []

When browsing help, I noticed it has a function called IntSolve() for solving linear integral equations. Maple itself has function called intsolve() which is build-in.

Since Maple is case sensitive, I assumed when I type IntSolve() then it will find the shared version of IntSolve() automatically and not call Maple's own intsolve. And that is indeed what happed. I typed an example from the help on share as you can see


 

eq1 := p(x)-1/2*Int(x*y*p(y),y=0....1)=5/6*x;
IntSolve(eq1,p(x));
                             7775  
                             ---- x
                             7776  
intsolve(eq1,p(x));
                            p(x) = x

Ok, So one of them is a little wrong :).

But suppose I want to explicitly add the share library there, in the call, as prefix, so that when I look at the code later, I can see which function I am calling. How should one do this? I tried

share:-IntSolve(eq1,p(x));
    Error, `share` does not evaluate to a module
share[IntSolve](eq1,p(x));

 

The strange thing, is that this worked

IntSolve[IntSolve](eq1,p(x));

Basically, all what I want is to way to add the share name to all the calls somewhere, so I know, when looking at the code, which call is from which library or package.

Any idea how to do this? So to avoid any possible name clash since the share library seems large.

I am using Maple 17.02

I am using 17.02. I looked at this question, http://www.mapleprimes.com/questions/35783-Inverse-Cosine-And-Sine-Transform but I do not understand the answer.

I have a function F(w), and want to find f(t) using inverse cosine forurier transform.

Here is F(w)

F:= w-> cos(w*L)*cos(w*x)/(w^6+w^2*k);

All parameters are positive.

How can I use the answer shown above, or another function to find f(t)?

I can offcourse simply apply the definition myself, and I did:

int(F(w)*cos(w*x),w=0..infinity) assuming positive;

but the result is

So it does not converge. And I just wanted to check using a build-in function to verify. Strange than Maple does not have these in its inttrans package.

with(inttrans);

 

 

 

according to this page  http://www.maplesoft.com/products/maple/new_features/codeeditor.aspx

it says "Maple 17 features a completely new editor for writing Maple code."  but for the last 15 minutes I've been looking in my Maple 17.02 for windows and not able to figure where this editor is or how to start it.

When I open Maple, I say File->New-> and nothing there for an editor.

I also looked in my Maple installation icons group, there is nothing there.

I also looked here http://www.maplesoft.com/support/help/Maple/view.aspx?path=updates/Maple17/CodeEditor

"Maple 17 features a completely new editor for writing Maple code.   The editor includes many features to make it easier to write, read, and debug Maple code, such as syntax highlighting, bracket matching, command completion, and automatic indenting. The new editor is available for managing startup code, inline code edit regions, and code attached to embedded components."

but again, does not say anything about how to START it ? Or is this editor a separate apps I need to buy?

 

One can do igcd(12,8), and igcd(16,3), etc...

But how to define a list/set/array/vector/matrix, etc... that contains these pair of numbers, and then call/map igcd on this list?

I tried putting the pair of values in a list and set and even a matrix, calling calling map(igcd, lst) but not getting it right.

The confusing part for me with Maple is to know which data structure to use for each function, since there are more than one. Here are my silly attempts:

lst:={{12,8},{16,3}};
map(igcd,lst);

lst:=<<12|8>,<16|3>>;
map(igcd,lst);

lst:=[{12,8},{16,3}];
map(igcd,lst);

I was looking for something like in Mathematica:

lst = {{12, 8}, {16, 3}};
GCD @@ lst

    {4, 1}

I am sure it is possible to do this in Maple (i.e. map igcd to list of pair of numbers), I just can't get the syntax right. I did look at few examples somewhat related, but did not understand what they are doing. They said I need to pass an extra argument for map in this case?

thank you

Sorry for a basic question, but I am not able to find a setting for this, and I am stil newbie in using Maple UI.

A simple problem. When I copy some Maple code from the net, such as a proc() posted here or else where, then paste the code right into my open worksheet, then each line will show up with ">" at the left.

Is there a way to remove these ">" other than the way I do it now, which is manual process.

Having a ">" at start of each line does not seem to affect anything. The proc() gets defined fine, and I can call it. But normally when I write a proc(), there is no ">" to the left of each line, since those come only when hitting a RETURN. And that is what confuses me.

But what I am looking for, is a way to select some lines, and tell Maple to remove all the ">". Here is a screen shot of some code I just pasted to the worksheet:

 

 

First 80 81 82 83 84 85 86 Page 82 of 86