Joe Riel

9660 Reputation

23 Badges

20 years, 12 days

MaplePrimes Activity


These are replies submitted by Joe Riel

@Robert Israel Thanks for the correction.

@Robert Israel Thanks for the correction.

@PatrickT Thanks, I was hoping users would extend this as needed. ([0-9]+) is a regular expression that matches one or more digits. The parentheses, which group a regular expression, are superfluous in all the regular expressions and can be elided.  In the Pages line, sprintf("%") is equivalent to "".

@aryan_ams If A is invertible (det(A) <> 0), then the result should be the empty set. For example,

 LinearAlgebra:-NullSpace(Matrix([[1,0],[0,2]]));
                                 {}

The only vector that is a member of the null space, then, is the zero vector.

@aryan_ams If A is invertible (det(A) <> 0), then the result should be the empty set. For example,

 LinearAlgebra:-NullSpace(Matrix([[1,0],[0,2]]));
                                 {}

The only vector that is a member of the null space, then, is the zero vector.

Maple actually returns NULL because the final do loop isn't executed when m=0.  It isn't clear to me what you want to return, maybe

return eval(R);

Maple actually returns NULL because the final do loop isn't executed when m=0.  It isn't clear to me what you want to return, maybe

return eval(R);

@John Starrett Use the plotoptions option, e.g. 'plotoptions' = "color=rgb".  It gets passed to ?plotsetup.  You may want to change the default.  See ?plot,ps for details.

@John Starrett That's a good idea and a nice way to handle it.

A weakness of my design is that the default location of the temp file is ?currentdir(), which is not necessarily writable and also probably not a great place to be writing, regardless.  I didn't know the usual location of a temporary directory in Windows.  A quick web search indicates getenv("TEMP") should work in Windows. 

@protrader The peakdet procedure is assigned in a startup code region in the worksheet. Click the gear-like symbol on the toolbar, or select Edit -> Startup Code from the menu to open the code region.

@protrader The peakdet procedure is assigned in a startup code region in the worksheet. Click the gear-like symbol on the toolbar, or select Edit -> Startup Code from the menu to open the code region.

@viraghj One difference is that I have a 64-bit installation.  Maple does modify LD_LIBRARY_PATH, you can inspect it with, say,

map2(printf, "%s\n",StringTools:-Split(getenv("LD_LIBRARY_PATH"),":")):
/usr/local/share/maple/15/bin.X86_64_LINUX/X8664SSE2
/usr/local/share/maple/15/jre.X86_64_LINUX/lib/amd64/server
/usr/local/share/maple/15/jre.X86_64_LINUX/lib/amd64
/usr/local/share/maple/15/jre.X86_64_LINUX/../lib/amd64
/usr/local/share/maple/15/bin.X86_64_LINUX
/usr/local/share/maple/15/toolbox/MapleSim/bin.X86_64_LINUX
/usr/local/share/maple/15/jre.X86_64_LINUX/lib/amd64
/usr/local/share/maple/15/jre.X86_64_LINUX/lib/amd64/server
/usr/local/share/maple/15/jre.X86_64_LINUX/lib/amd64/native_threads

/usr/lib
/usr/local/share/maple/15/bin.X86_64_LINUX/opengl
/usr/local/share/maple/15/toolbox/MapleSim/bin.X86_64_LINUX

@viraghj One difference is that I have a 64-bit installation.  Maple does modify LD_LIBRARY_PATH, you can inspect it with, say,

map2(printf, "%s\n",StringTools:-Split(getenv("LD_LIBRARY_PATH"),":")):
/usr/local/share/maple/15/bin.X86_64_LINUX/X8664SSE2
/usr/local/share/maple/15/jre.X86_64_LINUX/lib/amd64/server
/usr/local/share/maple/15/jre.X86_64_LINUX/lib/amd64
/usr/local/share/maple/15/jre.X86_64_LINUX/../lib/amd64
/usr/local/share/maple/15/bin.X86_64_LINUX
/usr/local/share/maple/15/toolbox/MapleSim/bin.X86_64_LINUX
/usr/local/share/maple/15/jre.X86_64_LINUX/lib/amd64
/usr/local/share/maple/15/jre.X86_64_LINUX/lib/amd64/server
/usr/local/share/maple/15/jre.X86_64_LINUX/lib/amd64/native_threads

/usr/lib
/usr/local/share/maple/15/bin.X86_64_LINUX/opengl
/usr/local/share/maple/15/toolbox/MapleSim/bin.X86_64_LINUX

@aryan_ams Before the call to fsolve, do

Digits := 50:

You might want to try an even higher setting.  Undoubtedly there are better approachs, but this seemed the simplest.

@aryan_ams Before the call to fsolve, do

Digits := 50:

You might want to try an even higher setting.  Undoubtedly there are better approachs, but this seemed the simplest.

First 68 69 70 71 72 73 74 Last Page 70 of 195