Daniel Skoog

Daniel Skoog

1751 Reputation

22 Badges

12 years, 37 days

MaplePrimes Activity


These are answers submitted by Daniel Skoog

Perhaps you meant to have the end do; at the end of your code:

restart;
with(DEtools): with(plots):
lambda := 0.1; delta := .5;
tau := 40;
for k to 3 do 365*k;
ode := diff(U(t), t) = -lambda(t)*U(t)*U(t);
inc1 := U(0) = 100;
sol1 := dsolve({inc1, ode}, U(t), numeric);
F := proc (t) options operator, arrow; rhs(sol1(t)[2]) end proc;
F(365*k+tau+0);
Z := (1-delta)*F(365*k+tau+0);
inc2 := U(365*k+tau+0) = Z;
sol2 := dsolve({inc2, ode}, U(t), numeric);
end do;

which returns U(405), U(770), U(1135).

This problem was fixed by inserting the task template into a Maple worksheet by clicking 'Insert default content' and then using the button.

The issue was that content in Task templates are only active AFTER being inserted into a Maple worksheet.

This error message suggests that either your compiler is not configured correctly (see: http://www.maplesoft.com/support/install/maple15_install.html#MapleInstallGuide_CPPCompiler ) or that there is something wrong with your simulation.

To test the simulation without a compiler, you can also try to turn off the compiler by going to the settings tab and setting compiler to false and then running the simulation.

If your problem persists, please contact Maplesoft technical support at: support (at) maplesoft.com

 

Google translation:

Ce message d'erreur suggère que soit votre compilateur n'est pas configuré correctement (voir: http://www.maplesoft.com/support/install/maple15_install.html # MapleInstallGuide_CPPCompiler ) ou qu'il ya quelque chose de mal avec votre simulation.

Pour tester la simulation sans un compilateur, vous pouvez également essayer de désactiver le compilateur en allant dans l'onglet paramètres et la mise compilateur sur false, puis lancer la simulation.

Si votre problème persiste, s'il vous plaît contactez le support technique de Maplesoft à: support (at) maplesoft.com

As the previous comments state, Classic worksheet is not available in OsX.

However, there are some steps you can take to make your Maple 'Standard' interface look and act more like 'Classic'.

To do this:

Go to Maple <Version #> - Preferences

Under the Display tab change:

Input Notation to Maple Notation

Output Notation to Typeset Notation

 

Under the Interface Tab change:

Default format for new worksheets to Worksheet

Press Apply Globally to permanently save the settings.  It's not identical to Classic, but it's as close as it gets.

When you use the Optimization:-Minimize command, Maple returns the first local minimum it finds in the interval and will NOT return the global minimum for the equation.

In this case:

[-2.02634418581704, [x = .452809600260151]]

is correct because it corresponds to the first local minimum.

 

As pagan mentions, you can also use the method=branchandbound method or by inspection, you can also find this manually by specifying the range in which you expect to see the min:

For example:

Optimization[Minimize](h(x),x=0.8..1.4);

returns:

[-4.57468789382248, [x = 1.14302017080379]] which is the result that you were expecting for your particular problem (Note though that this may NOT be the global min).

Hope this helps.

 

Have a look at the configuration steps for the Maple toolbox for Matlab here:

http://www.maplesoft.com/support/help/Maple/view.aspx?path=Matlab/setup&term=Matlab/setup

If this doesn't help, contact Technical Support at support@maplesoft.com for further assistance.

Are you running a package called 'grader' before you execute this code or do you have a reference to this in your Maple initialization files? Have you modified your Maple libraries in any way?

 

In any case, I would suggest that a reinstall of Maple might be the best way to fix this issue.

On 64 bit computers, you can install both 32 and 64 bit versions of Maple. You will not need a separate license for the second installation in the same operating system.

 

Many users do choose to install the 32 bit version alongside the 64bit version in Windows in order to utilize the full Finance package and use MS Office, which is usually 32 bit.

This is usually caused by two problems:

1. The Maple script hasn't been edited properly. The MATLAB lab installation directory is usually found in the /Applications directory. For example, my MATLAB R2009b is found in the /Applications/MATLAB_R2009b directory.

For example, my $MAPLE/bin/maple script has the following change:

 

MATLAB_BASEDIR=/Applications/MATLAB_R2009b.app

export MATLAB_BASEDIR

 

Now from your code, it appears that you have this already, so it may be the second case:

 

2. It's possible that you're using the 64-bit version of Maple. You can find out by executing the following command in Maple:

kernelopts(wordsize);

If this is the case then there are compatibility issues since Mathworks does not offer a 64-bit version of MATLAB for Mac. If you want to use the MATLAB link, you will have to switch Maple to 32-bit mode. In order to do this:

a. From the Maple menubar, select Maple 13->Preferences.

b. Under the "General" tab, select "Always create a 32-bit engine" from the Engine Type drop-down menu.

c. Press the appropriate "Apply" button.

You can disable the startup dialog box by unchecking the 'Show this dialog on startup' box in the bottom left corner.

In Maple 14 and below, you can probably only use the ALT+W then the number key for the corresponding window.

In Maple 15 you can use CTRL+TAB (move forward through the tabs) and CTRL+SHIFT+TAB (move backward through the tabs).

Maple 15 and later should be officially supported on Macintosh OS X Lion (10.7) soon. 

Maple 14 may work on this operating system, but has not been tested and is not officially supported.

Maple 13 and earlier will not work on OS X 10.7 due to the lack of PPC support on this new operating system.

Users of this operating system will need to upgrade their copy of Maple.

You can simply drag the Maple installation folder and any icons on the desktop to the trash and delete it. 

If you would like to make any changes to your application in the Maple Application Centre, you can contact Maplesoft Technical Support at support (at) maplesoft.com

First 8 9 10 11 12 Page 10 of 12