DuncanA

698 Reputation

8 Badges

17 years, 216 days

MaplePrimes Activity


These are replies submitted by DuncanA

@alex_01 Your code has to wait for the task to run to completion before str1 and str2 will contain the correct output; see ?Threads[Wait].

id1 := Create(X(), str1):
id2 := Create(X(), str2):
Wait(id1, id2);
str1;str2;

Without the call to Wait, the thread of control that calls Create x 2 will immediately print str1 and str2. This will happen so quickly that they will have had no values assigned to them and they will not give the desired output.

@alex_01 Your code has to wait for the task to run to completion before str1 and str2 will contain the correct output; see ?Threads[Wait].

id1 := Create(X(), str1):
id2 := Create(X(), str2):
Wait(id1, id2);
str1;str2;

Without the call to Wait, the thread of control that calls Create x 2 will immediately print str1 and str2. This will happen so quickly that they will have had no values assigned to them and they will not give the desired output.

@Oliver K You may be right. I was thinking that using the two-argument arctan version, i.e., arctan(y,x) instead of arctan(y/x), avoids the need to use an `if` statement to cover special cases including division by zero as the handling for the special cases is built into the two-argument arctan.

@Oliver K You may be right. I was thinking that using the two-argument arctan version, i.e., arctan(y,x) instead of arctan(y/x), avoids the need to use an `if` statement to cover special cases including division by zero as the handling for the special cases is built into the two-argument arctan.

Stefan Steinhaus has produced a more detailed comparison of some of the main mathematical software packages including the three Ms. In his latest comparison, published in 2008, he compares Maple 11, Mathematica 6, Matlab 2008a, plus GAUSS, O-Matrix, OxMetrics Ox Professional, and Scilab.

http://www.scientificweb.com/ncrunch/

 

---

Duncan

@nhau 

http://maths.dur.ac.uk/Ug/projects/library/PR4/000419461r.pdf

This pdf file contains maple code for elliptic curve calculations over GF(2,m). They don't use the GF package, but use modp1 polynomial representation.

 

Duncan

@nhau 

http://maths.dur.ac.uk/Ug/projects/library/PR4/000419461r.pdf

This pdf file contains maple code for elliptic curve calculations over GF(2,m). They don't use the GF package, but use modp1 polynomial representation.

 

Duncan

In the Display tab of the Tools>Options menu, changing "Output display" to "Character notation" will change the Maple output so that text can be copied to other applications.

With character notation, when the output of

Logic:-BooleanSimplify( `&and`(a, b) );
                                   a &and b

is copied and pasted into Notepad or MSWord the result will be

 a &and b

instead of

`&and`(a, b)

The output ampersand can be removed using the Export command from the Logic package.

Logic:-Export( `&and`(a, b) );
a and b

 

The help page for the ExcelTools[Import] command can be found by typing

?ExcelTools,Import

at a Maple prompt.

I don't have access to your original excel file, but below there is an example of how I have used the command to import an excel spreadsheet named "StandardCharteredHistoricClosingPrices.xls".

with(ExcelTools):
A := Import("StandardCharteredHistoricClosingPrices.xls"):



The contents of the spreadsheet are imported into Array 'A' which can then be manipulated to process the data. The help page contains examples showing how specific sheets and cell ranges can be imported.

 

Duncan

The help page for the ExcelTools[Import] command can be found by typing

?ExcelTools,Import

at a Maple prompt.

I don't have access to your original excel file, but below there is an example of how I have used the command to import an excel spreadsheet named "StandardCharteredHistoricClosingPrices.xls".

with(ExcelTools):
A := Import("StandardCharteredHistoricClosingPrices.xls"):



The contents of the spreadsheet are imported into Array 'A' which can then be manipulated to process the data. The help page contains examples showing how specific sheets and cell ranges can be imported.

 

Duncan

This site is using the fckeditor (http://docs.fckeditor.net/) and it seems that the editor may not be configured properly.

If you are editing the worksheet in Document Mode, you can place the cursor in the Document block and from the menu system select 'Edit > Select Document Block' then 'View > Expand Document Block'. This will reveal Maple commands that are normally hidden from view and can be done without right-clicking anywhere in an execution group.

Similarly, 'Edit > Select Execution Group' and 'Format > Convert To > 1D Math Input' will convert 2D Math to 1D Math and can uncover problems introduced when typing in equations in 2D Math.

Duncan

I've experienced a similar problem in both WindowsXP and Linux while executing a worksheet with several lines of print statements. The autosave begins, Maple becomes unresponsive and appears to hang. The only way out of the problem was to reboot and make sure I had autosave turned off the next time I executed the worksheet.
1 2 3 4 Page 4 of 4