Questions

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]

Here's a little test double loop

for i from 1 to 2 do

for j from 1 to 2 do

A[i,j]:=Binomial[i+j,i];

end do;

end do;

I would like to get ANYTHING to output. I get NOTHING, no matter WHAT variations I make. I can output when the loop is just a SINGLE nest. But, as soon as I embed that nest inside a second nest - NOTHING outputs.

 

Are there any commands which will allow me to create zero-based arrays in Maple?

I have a linear recursion, in 4 variables,

c[i,j,k,l]

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.

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.

Function limits at domain endpoints

My calculus text says that a function cannot have an ordinary limit at an endpoint of its domain, but it can have a one-sided limit.  So, in the case of f(x) = sqrt(4 - x^2), the text says (a) that it has a left-hand limit at x = 2 and a right-hand limit at x = -2, but it does not have a left-hand limit at x = -2 or a right-hand limit at x = 2 and (b) that it does not have ordinary two-sided limits at either -2 or 2.

So there are six possibilities.  Maple gives limit = 0 for all six.  Why the discrepancy?

Alla

Curious bug

Here's a Maple bug:

If you define the function f(x) = (5 - y) ^ (4/3), then try to evaluate it at f(-3), you get the wrong answer.  To get the right answer you must evaluate it at f(-3.)  Of course we know that Maple distinguishes between exact answers & decimal answers, but both answers are supposed to be the same.  In the first case, you get 88^(1/3); in the second, the correct answer of 16.0. 

Anyone know what's going on?

Allan

 

 

 

Filename generator

Ever wondered how you can create filenames by cycle.

Well, I did, because I needed it. And I came up with something that works and because once i forgot it, I decided this time to put it here. At least, I won't forget again :) If you have a better way to do it, please, say so.

The idea:

>A:=`/home/Data/file_`; B:=`.txt`;

>for i from 1 to 3 do C:=cat(A,i,B); writedata(`C`,[i],integer);od;

For t := x^(1-I), f := arcsin(t) + arcsin(1/t) i have problems with

  dd:= PDEtools[dpolyform](y(z)=f,no_Fn);

                           d
                    dd := [-- y(x) = 0] &where []
                           dx
Syndicate content
}