Product Tips & Techniques

Tips and Tricks on how to get the most about Maple and MapleSim

Hi, I have a table of tables like the following one.

fss:= [{a, b, c}, table([e4 = table([a = .4, b = .7, c = 1]), e1 = table([a = .2, b = 0, c = .1]), e2 = table([a = .1, b = 1, c = .4])]), {e1, e2, e3, e4}];
 

Now I want to compute fss[2][e4][b]/2.0 but Maple does not recognize table entry as a number. What I should do? What is the reason for this behaviour?

 

Maple says that the limit of sqrt(x), as x goes to 0, is 0, but Edwards of Larson et al. says that it isn't because "f(x) = sqrt(x) is not defined on an open interval containing 0 because the domain of f is x > = 0." 

 Comments?
 

Alla

The help page ?type/protected states:

The set of protected names in Maple can be computed with select(type, {unames(), anames(anything)}, protected).

However, the result of this computation is "time dependent". I.e. repeated execution of this command produce different sets. E.g. executed in a fresh session:

In this previous post, an example is shown that demonstrates the potential problems that can arise following symbolic conversions such as from sqrt(x^2)  to x^(1/2).

Here x is an unknown symbol. The difficulties include the fact that, while `sqrt` can be smart about simplifying numeric values (eg. integers, rationals) the `^` operator has no such opportunity. Once the conversion from `sqrt`...

This provides a Maple solution to compute the bivariate normal distribution by recursions for numerical inputs. It works even for extreme cases and handles situations, where usual integration with Maple has serious problems (even after reducing to dimension 1), it seems to be reliable and fast and works in 'arbitrary' precision.

To use it call N2_as_sum(1.0, 2.0, 0.8,  200) to compute the BVN for x = 1.0, y = 2.0 and correlation rho = 0.8 with at most 200 recursion steps (it will stop earlier, if no more improvements can be seen).

The calling sequence in ?complex states only the two argument form 'Complex(x, y)', but later in the section "Description", in a bit confusing way, two rules for the single argument form are stated:

I need to do the following. Suppose I have an array, c[ ]. I need to be able to specialize the elements of this array, and then later "clear" the elements, making them indeterminates again. I attempted to do this by creating a temporary holding array

i:='i': for i from 1 to 5 do d[i]:=c[i] end do;
i:='i': for i from 1 to 5 do c[i]:=i end do;
i:='i': for i from 1 to 5 do c[i]:=d[i] end do;
 

I expected and want the output to be

c[0] c[1] c[2] c[3] c[4] c[5] 1 2 3 4 5 c[0] c[1] c[2] c[3] c[4] c[5]

Hi, I am facing a problem to copy the Maple output into SWP5.0. When I paste the output, generated by 

print(expression,latex);

in SWP it remains mere ASCII. Kindly guide me. Thanx.

In a concurrent thread I posted the following simplification procedure

  Tryhard:= proc(expr)
    global E_in_Tryhard;
    subs(pow= `^`,
      codegen[optimize](subs(E_in_Tryhard= expr, ()-> E_in_Tryhard), tryhard))()
  end proc;

and now put into an extra blog post, as it might be helpful for others. Note, that this does not work on all constructs in Maple and certainly the package is a bit dated.

As the discussion in this thread  did not provide me a clear understanding of the implementation and intended usage of the property 'continuous' I have looked at this subject a bit further. And as it is an underdocumented subject, it seems fit to post here some issues that I have found.

Does the following error message mean that the only way to remove RealDomain is to exit Maple & then start a new session?

 unwith(RealDomain):

I want to use the differentiate function for this problem. y=(x^3+3x+11)(x-1)^5, and the other one I need help with is Differentiate y=sqrt3x-1/x Having difficulty in know how to enter problems in Maple.

I'm disappointed with the quality of graphics exported to EPS format;  I'm using Maple 11.

Even with a simple plot, like  

plot( x^2, x=-1..2);

the exported EPS file  (I've tried using both the interactive export, clicking on the graphic) and the explicit   plotoutput   command)  is large and messy, and produces a jaggedy graph when printed.      As I recall this...

I am missing the F1-help to work properly after highlighting words
at least for the following

invfourier ---> completely missing (it is in inttrans)
invlaplace ---> completely missing
invmellin  ---> completely missing
fourier    ---> MTM[fourier], but not inttrans

Parts      ---> completely missing (expect it in IntegrationTools)
Flip       ---> ImageTools[Flip], but not...

I recently discovered a minor variation on the technique of building a set using a table. The purpose for using a table rather than inserting new items directly into a set is that, in a loop, the latter technique is O(n) rather than O(n).  The way I would normally do this is to assign a counter and an empty table, and then, in a loop, compute the new element, increment the counter, and insert the element into the table at the counter index.  For example,

First 40 41 42 43 44 45 46 Last Page 42 of 64