Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

     I suppose that Maple 15 is now in the stage of beta testing, but I have not served as a beta tester for a few years.

     Those scientists and mathematicians who apply Maple in teaching mathematics, science and engineering or who use it in their research naturally wonder what will be in store in the next release to complement and to extend the features in preceding releases. 

     I have no...

int(sqrt(1 + sec(x)^2), x)

int(sqrt(2 + tan(x)^2), x)

With Maple 13, which is the latest version on the computer on which I tested these integrals (that originated with a

senior scientist in Australia), the former yields a reasonably compact answer, but the latter yields an extensive

output containing Elliptic functions of various kinds.  The two integrands are trigonometric identities.  What is the

problem here?

    ...

how can i input and solve  the one dimensional wave equation with intial and boundry conditions???

      Here is one of the problems from "Mathematical Trivium"  (Russian Mathematical Surveys, 1991, 46:1, 271-278) by V. Arnold. Those problems are aimed at the strong graduate and postgraduate students of the top universities.
      I find it remarkable that a big part of the Arnold's problems can be solved with Maple.
 
      Problem...

r := 1;
c := 1;
G := 1;
M := 1;
theta := 90;

ex1 := {
Diff(f1(t), t$2)
+ 2*(-G*M/(r*(-r*c^2+2*G*M)))*Diff(f(t), t1)*Diff(f2(t), t) = 0,

Diff(f2(t), t$2)
+ (-(-r*c^2+2*G*M)*G*M/(r^3*c^4))*Diff(f1(t), t)^2
+ (G*M/(r*(-r*c^2+2*G*M)))*Diff(f2(t), t$2)
+ ((-r*c^2+2*G*M)/c^2)*Diff(f3(t), t$2)
+ ((-r*c^2+2*G*M)*sin(theta)^2/c^2)*Diff(f4(t), t)^2 = 0,

Diff(f3(t), t$2)
+ (-sin(theta)*cos(theta))*Diff(f4(t), t)^2 = 0,

Diff(f3(t), t$2)

This happens every single time I try to do this and I need to resolve it once and for all.

 

I have a text file called be which is sitting on my desktop. It consists of two columns of data seperated by whitespace. How do I get maple to read this file? The help pages are of no use since it just tells me to do something like...

 

readdata(be,2): or readdata(be,1):


both of give the same "Error, (in readline) file or directory...

This post will explain how to configure the compiler and other tools that will be necessary for you to build the External Calling examples that will come in later posts.  This is an advanced topic and so this post is fairly complex.

First, I am going to be using the compilers via the command line, so you will need to familarize yourself with the terminal program on your particular OS.  You'll have to do this for yourself, but here are a few starting points:

Windows

Apple

I am going to assume that Linux and Solaris users are familar with using the terminal.

For Linux, Apple and Solaris, I am going to use gcc as the compiler.  For Linux you should use your distribution's package management system to get it, for Apple you need to install Xcode and for Solaris, well, gcc is probably already installed or you'll want to talk to you sys admin to have it installed (or if you are your own sys admin, you probably know how to install gcc for yourself).  For Windows, you need to install the Windows Software Development Kit.  If you already have a copy of Visual Studio C++ (Express or Professional) installed, then you already have these tools.

I am also going to use the "make" program to manage the building of the examples, thus you will need to install a version of make as well (you won't need to learn how make works unless you want to modify the examples).  I will be using gnu make, which should be easy to install on Linux and Solaris (similar to how you installed gcc) and it is included in Xcode for Apple.  For Windows, use this:

http://gnuwin32.sourceforge.net/packages/make.htm

Installing 32 bit make on 64 bit windows is fine.

Now you'll need to launch a terminal.  For Linux, Apple and Solaris this should be easy, on Windows go to the Windows SDK folder (or Windows Visual Studio folder) on the Start menu, there should be an icon for Windows SDK Command Prompt.  Click that to launch the terminal.  This version of the terminal has the environment configured to run the compiler.

On Windows you'll also have to add the location you installed make to your path, which can be done on 32 bit windows like this:

path=%PATH%;C:\Program Files\GnuWin32\bin

and on 64 bit Windows like this:

path=%PATH%;C:\Program Files (x86)\GnuWin32\bin

assuing you used the default install location for make.

You can test this by running "make" in the terminal.  If everything is set up correctly, make should run but not find a Makefile and it will raise an error.  If the path is not set properly, make won't be found you'll get a message saying that.

Path not set properly:

C:\Program Files\Microsoft SDKs\Windows\v7.1>make
'make' is not recognized as an internal or external command,
operable program or batch file.

Set the path:

C:\Program Files\Microsoft SDKs\Windows\v7.1>path=%PATH%;"C:\Program Files (x86)
\GnuWin32\bin"

Make is now found, but there is no makefile in the current directory

C:\Program Files\Microsoft SDKs\Windows\v7.1>make
make: *** No targets specified and no makefile found.  Stop.

As a final test, I've attached a small example (test.zip) that contains a Makefile and a simple source file.  If you extract the files to a new directory, go to that new directoy in the terminal and run make (with make added to the path as described above) it should build an executable (test or test.exe).  You can run the executable by executing "test" on the command line.

By default the Makefile is configured for Windows, so Windows users won't need to change it, however other users will need to comment out the

WINDOWS=true

line in Makefile by changing it to

#WINDOWS=true

I know this is a little confusing, especially if you are not familar with the command line interface, therefore I encourage you post replies if you have problems.  Hopefully we will be able to answer your questions.  Once everyone has figured out how to get this simple example to compile and run on their system, the upcoming external calling examples will be (relatively) easy.

Good Luck!

Darin

Hi

I have a problem with Maple. I would like to see an answer in numbers this equation, but instead I get more equations. I've tried to use evalf but that didn't work for me.

Is there someone who can look at this and help me?

Thanks in advance!

 

This is my Maple output (sorry for the uglyness):

> SomAx := Ax+F2+F6*sin(beta)-F1*sin(gamma) = 0;
print(`output redirected...`); # input placeholder
    ...

I would like to know how to find an extreme (max) point of function of two variables:

and how to manage with this error

"Warning, solutions may have been lost

                                                  ...

I migrate to Mac OS X 10.6.6.

And Maple 13 and 12 (with or without Firewall)

do not work any more : "kernel connection is lost".

(When Firewall is working, it has all the necessary permissions.)

The mserver (64 bits) mobilize 100 % of CPU two or three times

(and I have to wait at least 1 minute each time), then disconnection appears.

I reinstalled Maple 13 and get the same results.

What can I do ?

Can I  upload a worksheet in MapleCloud with some security code that allow the person just read the worksheet and not download/save in their own computer? Is there a option in MapleCloud like this or any worksheet in MapleCloud can be viewed and save?

 

Thanks Washington Inácio

Test.mw

If I use a binary {0,1} linear program the cardinal constraint ie control the
number of 1's (long positions in portfolio) works beautiful. See attached worksheet.

The problem starts when I convert the problem into a constrained integer {-1,0,1}
linear problem where -1= short position, 0=no position and 1=long position.

In the first example when we add the constraint  add(w[i], i = 1 .. NC) = 4

Dear friends,

 

I have to generate several pages of tables with numbers (using the option Matrix in Maple) and to write them in Latex.

Is there some option to be able to include  titles of the tables, names of the columns, notes on the bottom of the pages?

 

I saw some question like this in mapleprimes, but it was time ago that I wonder that now maybe the Latex Output of Maple has improved.

 

Thanks for your attention,

Hey folks I'm trying to solve equations using isolve for which I want conditions on my two variables x and y. I would like them to be both positive and x>y. The problem I'm having with isolve now is that I can't manipulate the output I get. Perhaps there is a way to do this but I can't see how yet. It would produce something like {x = 1, y = 2} for example and I can't extract the numerical values from it (at least using [] operators). I currently don't have access to maple...

Hi everybody,

I have a little problem with Maple 14.01:

I would like to export a figure created with plot3d as an eps file. I do so by simply right-clicking on the figure and than on export -> encapsulated postscript. The problem: it does not work properly:

With Maple 12, I get a 2mb large vector graphic. If I export the same figure under Maple 14.01, the file is only 148kb large und not a vector graphic - when I open it with Inkscape, it just looks like an ordinary jpg-picture.

First 1736 1737 1738 1739 1740 1741 1742 Last Page 1738 of 2224