Maple Techniques

acer's picture

undoing one form of symbolic root

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).

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 single argument Complex constructor

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:

resolvent's picture

How do I "clear" an array?

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]

From Maple to Scientific Workplace

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.

The continuous property

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.

unwith

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

 unwith(RealDomain):

command help

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.

Axel Vogt's picture

Broken help links / Maple 12 Classic

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 to IntegrationTools
Change     ---> selection, but no IntegrationTools
Syndicate content
}