Joe Riel

7919 Reputation

22 Badges

14 years, 311 days

MaplePrimes Activity


These are replies submitted by Joe Riel

Are you able to create multicharacter symbols using Ctrl-Space? I never got it to work, so use the method I previously described (though I'd probably go that way anyhow, since I prefer maple input mode).
It is quicker, however, it returns the noninert partial differentiation symbol, which may not be desired; for example, if you want to create `∂f`.
It is quicker, however, it returns the noninert partial differentiation symbol, which may not be desired; for example, if you want to create `∂f`.
Note that And and Not are not protected symbols, so, if you're writing code, you'll want to enclose them in forward quotes:
type(x, 'And'(symbol,'Not'(constant)));
You can also enclose the entire expresssion:
type(x, 'And(symbol,Not(constant))');
Note that And and Not are not protected symbols, so, if you're writing code, you'll want to enclose them in forward quotes:
type(x, 'And'(symbol,'Not'(constant)));
You can also enclose the entire expresssion:
type(x, 'And(symbol,Not(constant))');
Adding a wiki seems an excellent idea. I'd also like an online journal. I enjoyed MapleTech (back in the day); an electronic version would be convenient. While it might not be appropriate for MaplePrimes, I occasionally think that having online access to the Maple help browser would be useful. Not for a single user---who presumably has access to the existing help browswer---but as a way to answer a question without just writing "see ?SomePackage,Afunction".
John Maplenut has repackaged the share library to run on Maple 9.5. It is available at his website. I downloaded and installed it some time ago, however, I haven't used it much. My recollection is that that there are a few problems, but don't recall what.
Nice improvement, Alec, thanks. Slightly clearer, I think, and a bit faster is to replace trunc( (...)/i) with iquo( (...), i). Faster yet (still not by much) is to replace the three calls to irem() with a single call that assigns a local variable. One implementation is
Sols3 := proc(b)
local A,i,j,k,arem,rem;
    arem := proc() rem := irem(b*j,i) end;
    A := table();
    A[1] := [$1..b-1];
    for i from 2 do
        A[i] := [seq](seq(b*j+k*i-rem
                          ,k = `if`(arem()=0,0,1) .. iquo(b-1+rem,i))
                      ,j = A[i-1]);
        if A[i] = [] then break fi
    od;
    i-1 = A[i-1]
end proc:
Thanks for following up on this. Anybody know what "pre" stands for? My first guess is "preview", though it isn't clear how that relates to not stripping spaces.
Nice improvement. Adding a new type wouldn't break anything. As you say, indices for type/integer are strange. I forget, use parentheses, than look up ?type,integer to determine how to do it right. Note, however, that RealRange is not a type, so making IntegerRange a type would be confusing.
Other possible extensions might be hdb (Maple help database), mla (Maple archive), and lib and ind (Maple library and separate index) however, I suspect most of those might be more usefully packed into zip files.
Never mind, my number is 84, not 48. At least its only two digits!
I'm curious that Thomas Richard's ID appears to be 50 while mine is 48, yet he joined three weeks before I did. Apparently these aren't being allocated in numerical order. Or do they change?
It doesn't seem to, or I haven't noticed, with FireFox 1.0.4. However, I use fairly small fonts. Enlarging them made some of the text hit the Creative Commons notice. Maybe that's what you meant.
Modifying the code to solve that version (same problem but without 0) is easy (a two character change); I can see how you could remember (most of the) solution after so long. I assume Sinclair Basic didn't have recursion, handling it with loops seems tedious.
First 177 178 179 180 Page 179 of 180