Thomas Richard

Mr. Thomas Richard

3255 Reputation

13 Badges

15 years, 96 days
Maplesoft Europe GmbH
Technical professional in industry or government
Aachen, North Rhine-Westphalia, Germany

MaplePrimes Activity


These are answers submitted by Thomas Richard

As the error message indicates, the isprime function is not available in C. And code generation does not cover Maple's internal procedures.  You might consider the OpenMaple API instead. However, this requires Maple to be installed on the target computer.

I don't have Maple 9 installed here, but the output is okay e.g. in Maple 7 and 9.5 and newer versions. There were three minor updates (collections of patches) when Maple 9 was current, but they are no longer available. Please consider upgrading.

Could you upload the file, please? Nothing was attached to your post. Just use the green arrow-up button.

To invoke the garbage collector explicitly, call gc();

If that doesn't help, we'll need to see the actual simplification example.

F := n->Matrix(n,n,(i,j)->`if`(n-i+1=j,1,0));

F(1), F(2), F(3), F(4);

Please see ?if (the "if operator" form particularly) and maybe ?rtable,indexfcn for more information.

For n>10, you'll need interface(rtablesize=n) or interface(rtablesize=infinity) to see the actual matrix, as opposed to a placeholder.

Does MATLAB have an equivalent of Maple 15's getdata command (see ?plottools[getdata] for more info)?

I'm getting [2.00000000000072, [x = .267591466810375, y = 1.73240853318905]] and no error message.

Did you load any other packages besides Optimization and/or change settings such as Digits, UseHardwareFloats?

Which platform are you on?

Also, in case you have Maple 15.00, try updating to 15.01.

Did you follow the installation instructions at http://www.ima.umn.edu/~leykin/PHCmaple/index.htm closely?

I suppose you have "with(phc);" in your Maple.ini file. It's not in the session you posted, but the first few commands issue no error messages.

Please note that Windows 7 is not an officially supported platform for Maple 12 (which appeared earlier than W7), though it should basically work.

Also, did you try Maple's own RootFinding package instead? Homotopy(f) seems to work well for your example.

I haven't installed that particular package (using our Global Optimization Toolbox instead), but regarding your last two questions:

yes, you can convert Maple code to MATLAB (see ?CodeGeneration,Matlab in the help system) and call Maple from MATLAB via the "MATLAB Toolbox" which is part of Maple (as an extra installer) since version 14. Please check out http://www.maplesoft.com/products/maple/features/feature_detail.aspx?fid=6721 for the details.

The result is to be understood as a limit, more precisely limit(x^x,x=0). This is the common convention in most mathematical software products.

You can alter Maple's behaviour by creating your own NumericEventHandler, based on the following observation:

NumericStatus(invalid_operation);
                             false
0^0;
                               1
NumericStatus(invalid_operation);
                              true

Please see ?NumericEventHandler for more info.


 

I don't have a Mac to check, but on Windows and Linux, you can use

<Alt+e><e><w> to access Edit > Execute > Worksheet

<Alt+e><v><w> to access Edit > Remove Output > From Worksheet

Maple 7 was the last version to support classical Mac OS. Maple 9 was the first to support OS X. For Maple 8, we only had a command-line version (plus Maplets-based plotting) on OS X, downloadable for EMP customers. It's no longer available.

Unless it's some sort of misunderstanding, may I ask why you would need a version from 2002?

Are talking about the menu item for switching between Maple Notation and 2D Math Notation? That would be

Tools > Options > Display > Input Display

Distributions is a module inside the Statistics package, and local members of modules are hidden by default. To override that temporarily:

kernelopts(opaquemodules=false);
print(Statistics:-Distributions:-DataStructure:-NewDistribution);

Exact solutions can be obtained via solve, but you have to get rid of the abs expressions first. That can be achieved by evalc. Also, I suggest using exact input wherever possible. See my worksheet for these changes.

complex-roots-evalc-.mw

First 33 34 35 36 37 38 39 Last Page 35 of 43