Joe Riel

9590 Reputation

23 Badges

19 years, 132 days

MaplePrimes Activity


These are replies submitted by Joe Riel

@jrive I believe the latest version of Syrup is available on the Maple cloud and has version 0.2.8.

@nm Using false as the condition causes the conditional to be removed from the code by the simplifier, which is generally a good thing.  I recently had a reason for keeping the code in a procedure, so used 1=0 for the condition.

@Carl Love I frequently use tty maple (on linux), so when copying, the prompts are included.  I switched to "(**)" as the prompt for that reason.

@nm there is a workaround.  Declare the object as a named module (see the help ?module,named).  Instead of

person := module() ... end module:

do

module person() ... end module:

 

@nm In this case, because the string you want to match ends at the right brace, but doesn't include another right brace, you can replace, in the 2nd group, ".*" with "[^}]*".  For example

s := "A& {test} & \\textrm{The fundamental matrix has } &C & {test} ":
S := StringTools:-RegSubs("(.*)\\\\textrm\\{([^}]*)\\}(.*)" = "\\1\\begin{minipage}{\\linewidth}\\textrm{\\2}\\end{minipage}\\3", s);

which produces
 

"A& {test} & \begin{minipage}{linewidth}\textrm{The fundamental matrix has }\end{minipage} &C & {test} "

 

@dharr  Your example is interesting.  The sizes of the two submatrices don't match, so it's not immediately obvious what should happen.  From testing we see that the A[7, 8..11] is assigned [0,0,0,0].

@Carl Love  There is a "simpler" approach (simple to me, because I wrote Syrup).  In the original, click in the code edit region and rename it to ckt2 (change the name in Code Edit Panel on the right, you might have to turn it on in the worksheet). Also, change its language from Maple to something else (I'm using Plain Text, but that wasn't an option until recently, so you could also use Modelica). 

I'll attempt to improve the error message that Solve is generating with the original.

@sand15 It's an interesting approach.  While the presented code doesn't explicitly use while loops, ifactor does, and it is called by ifactors. 

Did you get maplev-mode from Maplesoft or from GitHub?  I was out of action for most of last year and haven't done anything with either version.   The version of maplev-mode I use here is more recent than any I have pushed. 

In command line maple I'll do lprint~(sort([exports(GraphTheory)])): which prints a left-justified vertical column of all the exports.

@Carl Love Your MemUse seems to be ideal.  I was considering avoiding the local r and using add(kerneltops('memusage')[..,3]) but assume that that is slightly less space efficient because it generates a list.

@Christopher2222 Thanks.  The delay is a bit long, but it does work. You indicated there was some flashing, or something, but I didn't notice any indication that processing was occurring.  Also curious that entering riel brings up Joseph Riel (which may not be me), but not Joe Riel.

@Christopher2222 I'm not understanding.  I cannot find myself by typing Joe, which is my displayed name, but have to type Joseph then wait for Joseph Riel to display.  Typing Joe doesn't show matches for me, no matter how long I wait. Maybe I'm too impatient.  Have no idea how to match someone given their displayed ID.

Followup: If I enter just riel, then Joseph Riel appears.

@Christopher2222 Regardless whether the author works, its not clear what should be entered in the author field.  If I type the id I use to log in here, it doesn't recognize it (the dialog appears to work by showing matches for a partial name). If I type my full first name, it show a list of the people that match it, including showing my full name.

The worksheet is not yet attached.  Use the green up-arrow.

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