Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

I am having a problem working with a slider and a plot component in Maple 14. The slider specifies the domain of an animation I am trying to show. Whenever the slider's value is changed, I have code that should change the plot property "play" to "true" so that the animation begins. However, it fails to play the animation. After some troubleshooting, I found that the exact same code works in a Toggle Button component, and I also discovered that the Slider...

There is a probem in the Optimization package's (nonlinear programming problem) NLPSolve routine which affects multivariate problems given in so-called Operator form. That is, when the objective and constraints are not provided as expressions. Below is a workaround for this.

Usually, an objective (or constraint) gets processed by Optimization using automatic differentiation tools ...

Hi there. I have two expressions of type Matrix(7x1), one I entered directly and the other one is the result of a  procedure calling. They only differ by the term [1,1], so when I do a comparation of the appropiate submatrix using Equal I get a positive answer:

 

>Equal(SubMatrix(atataaV(1,1,1,1,u1),2..-1,1),SubMatrix(u1,2..-1,1));

true

 

Now, the elements of the submatrices depend on the symbol 'n',...

I'm brand new to Maple. How can I plot the Gammafunction with real numbers (not in N and C)?

I can only plot the Gammafunction in the complex plane by using the following:

with(plots);

f:=z->GAMMA(z);

complexplot3d(f);

Is it also possible to plot the Betafunction B(a,b):=int(t^(a-1)*(1-t)^(b-1),t=0..1) in such a way that I can assign special values to a and b?

These solutions will help me so much....Thank you for your answer!!!

I often run into this problem. Say I have defined a new variable in terms of some old variables:

     Eq1 := NewVar = OldVar1 + OldVar2

Then suppose I have an expression in terms of the old variables:

     Eq2 := OldVar6 * OldVar5 = OldVar3 * (OldVar1 + OldVar2)

If I want to substitute Eq1 into Eq2 I have to either type

     subs(OldVar1 + OldVar2 = NewVar1, Eq2)

or I can do this

Hi,
I need your help for this problem, please.

$\mathop  {\sum {...\sum }}\limits_{z_r \in {Q_{2}^{*}}}$ such that

$Q_{2}^{*}=((z_1,...,z_r):z_{j}=0,1,\sum_{j=1}^{r}z_{j}=\ell)$, where $\ell = 0, 1, . . . , r$.

For example. If r=3, $\ell=1$; then we are looking for triples with elements 0's or 1's and sum to 1 i.e. $Q_{2}^{*}={(0,0,1),(0,1,0),(1,0,0)}$. So we would like to sum over theses $z_r$'s.

I appreciate your help.
Hasan

If I was working for MapleSoft and I wanted to make sure that
Maple would become the best mathematics software in the world
the first thing I would look at would be my competitors.

I had a look at Mathematica's website and their marketing outline
some some very cool functionality that speak to my heart directly.
1) Integrated datasources  2) real time data analysis etc etc


I dont really like Mathematica due to their retarded programming

An interesting discussion on rule-based integration and a new symbolic computer algebra package for it, named Rubi is ongoing in this long usenet thread.

(The Rubi link above seems to work ok, although the link in the top article of that usenet thread may not. YMMV.)

There's also some interesting subtext related to how practical developments in computer algebra systems can come about.

Is it possible to switch between worksheet mode and document mode? If yes, how?

I want to compute expected utilities, i.e. I have a random variable and a utility function, e.g.

 

with(Statistics);

X:=RandomVariable(Normal(mu,sigma));

u:=t->1-exp(-phi*t);

 

and now I want to compute the expected utility, i.e.:

When Maple displays the results of a do-loop, it usually assigns only one label (e.g. '(2.1)') to the whole bunch of results.

Is there a way to have Maple assign a label to each expression resulting from some do-loop commands?

I refer to a specific solution using the label. I get two equations after using solve, and I want to introduce them in another system to solve applied again.

Please explain me why it happens:

 

with(LinearAlgebra);

MatrixInverse(`<|>`(`<,>`(a, c), `<,>`(b, d)));

Error, MatrixInverse is not a command in the LinearAlgebra package

 

WHY? Whats wrong, please explain me?

The greatest benefits from bringing Maple into the classroom are realized when the static pedagogy of a printed textbook is enlivened by the interplay of symbolic, graphic, and numeric calculations made possible by technology.  It is not enough merely to compute or check answers with Maple.  To stop after noting that indeed, Maple can compute the correct answer is not a pedagogical breakthrough.

...

It has been a while since my last post, mostly because of a combination of getting Maple 14 ready to ship and a lack of meaty topics to write about. I am trying to get back into the habit of posting more regularly. You can help me achieve my goal by posting questions about parallel programming. I'll do my best to answer. However for now, I'll give a brief overview of the new parallel programming features in Maple 14.

A new function has been added to the Task Programming Model. The Threads:-Task:-Return function allows a parallel algorithm implemented on top of the Task Programming Model to perform an early bail out. Lets imagine that you have implemented a parallel search. You are looking for a particular element in a large set of data. Using the Task Programming Model, you've created a bunch of tasks, each searching a particular subset of the data. However one of the first tasks to execute finds the element you are looking for. In Maple 13, there was no built in way of telling the other tasks that the result have been found and they they should not execute. In Maple 14, the Return function allows one task to specify a return value (which will be returned from Threads:-Task:-Start) and signal the other tasks that the algorithm is complete and that additional tasks should not be executed. Tasks that are already running will still run to completion, but tasks that have not started executing will not be started.

You may have noticed that there is a race condition with Return. What happens if two tasks both call Return in parallel? Only one of the values will become the value that is passed to Threads:-Task:-Start. I suppose I could say the "first" value is the one that is used, but really, what does that mean? If you call Return, then the value passed to Return should be an acceptable result for the algorithm.  If you call Return more than once, any of those values should be valid, thus it shouldn't matter which one becomes the return value.  That said, the Return function does give some feedback. In the task that succeeds in having its value accepted, Return will return true. In all other tasks that call Return, it will return false. This allows the code to know if a particular result was or was not accepted.

Maple 14 also adds the Task Programming Model to the C External Calling API. This means that you can write your algorithms in C and make use of the Task Programming Model. The C API is similar to the Maple API, with a few differences. In particular, you need to create each child task individually, instead of as a single call to Continue, as you would in Maple. As well, because it is C code, you need to worry about a few details like memory management that are handled automatically in Maple.  Using External Call is fairly advanced, so I won't go into too much detail here.  If you'd like to see more details of using the Task Programming Model in External Calling, I can write a seperated post dedicated to that.

As with every release of Maple, we spent some time trying to make our existing functionality faster and more stable. For parallel programming, we reduced the overhead of using the Task Programming Model, as well as reducing the locking in the kernel (which should help improve parallelism). Of course many bugs have been fixed, which should make parallel programming more reliable in Maple 14.

First 1802 1803 1804 1805 1806 1807 1808 Last Page 1804 of 2235