Carl Love

Carl Love

24830 Reputation

25 Badges

10 years, 117 days
Natick, Massachusetts, United States
My name was formerly Carl Devore.

MaplePrimes Activity

These are replies submitted by Carl Love

@Mike Mc Dermott You should be able to find those details with the built-in debugger, but I can't say any more about it. Hopefully someone else can provide details. 

If you just post your code (or worksheet), someone will likely track down the error.

OMG, that corrected primes code is tedious and amateurish (nearly elementary-school level) to say the least. How is it learning to program in Maple? And why did it make such a glaring syntax error on its first attempt? Does it just search the web for a single example program?

@mmcdara Yes, I meant to include option nolist. No, it hasn't become the default, although it's quite a nuisance that it wasn't the default from the very beginning. Thank you for finding my error.

@Mike Mc Dermott The error is from a procedure named `PD/PD`. It is indeed a recursive procedure, and it has something to do with Partial Derivatives, but I don't know any more. You can view its code with


The vast majority of Maple procedures are not "commands", meaning that they're not intended for use by top-level users, and they aren't documented. This includes almost all procedures that have the character `/` in their name.

@tomleslie One can tell from the error message that it's caused by a recursive procedure, not a recursive assignment. The error message for a recursive assignment is simply "Error, recursive assignment".

You left out the most important detail: What is the ODE and its initial or boundary values?

@JAMET A, B, C, and G are all points in 3-D space (in other words, 3-vectors). So G[1] = A, etc,, is nonsense.

@lcz TSPLIB is programmed, maintained, and documented externally to Maplesoft. A Google search on "TSPLIB" turns up a huge amount of documentation. Should it be Maplesoft's responsibility to document someone else's software? 

@dharr You wrote:

  • but for the multiplicative group, 0 is excluded and the order is n-1.

To clarify that, the order of the multiplicative group is n-1 iff is prime. Not just 0, but all values not coprime with n must be excluded from the multiplicative group because they're not invertible. In general, the order of the multiplicative group is NumberTheory:-Totient(n).

@Brian Hanley I have transferred plaintext Maple code from Maple worksheets to this forum, other forums, email, and text editors many, many thousands of times (this is my 13,834th post on this forum alone), and I've never seen this unwanted single quotes issue. I wonder if you're having an OS or browser issue. My process is

  1. Select the desired code with the mouse (left click and drag)
  2. Press Ctrl-C
  3. Move mouse cursor to desired location (some other editor)
  4. Left click
  5. Press Ctrl-V.

@acer It's an (admittedly small) shame that A__* is interpreted as a symbol, because the intention may have been the symbol A__ followed by an infix operator.

@Thomas Dean If you add a with(GroupTheory), then it'll work.

@mmcdara I think that you meant to say replace all double backslashes \\ with single forward slashes /.

@wswain The OP's presented example is admittedly contrived, but a drawback to your solution in such a case is that assigning to the indices will also change the entries.

@mmcdara No, I Answered the Question, whereas you merely provided "additonal information" only. Although neither you nor the OP (@segfault) understands this yet, it is clear beyond any doubt that @segfault's Question is about catenation (sometimes called concatenation (AFAIK, the two words are defined identically)), i.e., a computer-language-coded process to automatically generate a sequence such as R1R2...Rn, where n needn't be explicitly known at the time that the code is written. I suggested to suffix as a more common-English-understandable verb, although to catenate is well-established Computer Science usage. As I said, suffixed is formally defined in Maple, and Maple's cat is obviously an abbreviation of catenate. That the Maple code needed to do that is only 9 characters, R||(1..n), is further supplementary evidence that catenation is the OP's intent.

1 2 3 4 5 6 7 Last Page 1 of 645