resolvent

593 Reputation

8 Badges

17 years, 334 days

MaplePrimes Activity


These are questions asked by resolvent

How is it possible that the following program works correctly: printlevel:=2: for n from 1 to 10 do if (0=0 mod 5) then 0; end if; end do; It correctly outputs ten 0's. But, when I change 0 to n inside the if conditional printlevel:=2: for n from 1 to 10 do if (n=0 mod 5) then 0; end if; end do; I get nothing for output. I should get two 0's. n is 0 mod 5 exactly twice as n runs from 1 through 10. I have experimented with adding spaces and deleting spaces between keywords and parentheses and numerical values to test if that was the problem. Nothing works.
for n from 1 to 2 do if(isprime(L[n]) then 7 else 9; end if; end do; No matter combination of semicolons or colons I put at the end of each line or omit, I cannot get this little test routine not to spit back "unable to match delimiters" error message. L := [4, 5]; P1 := [-8, 9]; if (5 > 6) then P1[1] else L[2]; end if; Ironically, this routine worked. I do not see the difference.
Every time I try to make an underscore _ in Maple, I am forced into a subscript. Hence, I cannot enter commands such as dperiodic_sols from the DEtools list into my program. Thank you.
If any of the following has been programmed into Maple, then from a sufficient number of small examples, I might be able to "back-engineer" and figure out the solution to the following problem in general. I need help to know if I understand Ian Grant Macdonald's book "Symmetric Functions and Hall Polynomials" (1995, Clarendon Press, 2nd edition), page 109, correctly. I need to know what a domino tabloid of shape A and type B is, where A and B are both partitions of the positive integer N. I need to do this only for the case where A=(N), the partition of length 1. Essentially, I need the formula for the N-th powersum of
I need to plot about 44 points on an X-Y graph. All the X coordinates are given (imported from Excel) as a list. All the Y coordinates are given as a separate list. For example (roughly this is what the order of magnitudes are of the X and Y variables) X:=[380,4000,4067,...,5789] Y:=[10, 35, 56,...,82] So plot (380,10) (4000,35) (4067, 56)... (5789,82) I will worry about curve fitting and all that stuff later. I would first and foremost like to see Maple understand my data and plot it.
4 5 6 7 Page 6 of 7