Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

http://www.file-extensions.org/imgs/app-picture/3023/maple.gif

I want to make an application like the picture in Maple 16. Cuold you help me how to make it ?

Do you have any applications about physics nn maple 16?

ok I want to extract data from http://online.wsj.com/mdc/public/page/2_3024-AsianStocks_HONG_KONG.html
So in maple I type:

HTTP[Get]("http://online.wsj.com/mdc/public/page/2 _3024-AsianStocks_HONG_KONG.html", timeout = 100)

but this only give me a bunch of crap and no data and is extremly slow.

What can I do to get the data in a much more efficient way?

hi

i have two row data in excell and i import in maple as the following

Cl_alpha:=<<0.0887574|0.35157>,<0.502959|0.401794>,<0.91716|0.452018>,<1.30178|0.502242>,<1.71598|0.552466>,<2.13018|0.602691>,<2.54438|0.652915>,<2.95858|0.703139>,<3.37278|0.753363>,<3.78698|0.803587>,<4.20118|0.853812>,<4.5858|0.900448>,<5|0.950673>,<5.4142|1.0009>,<5.8284|1.05112>,<6.21302|1.09776>,<6.62722|1.14439>,<7.01183|1.19462>,<7.42604|1.24126>,<7.84024|1.28789>,<8.25444|1.33453>,<8.63905|1.37758>,<9.05325|1.41345>,<9.46746|1.44574>,<9.88166|1.47444>,<10.2959|1.49596>,<10.7101|1.50673>,<11.0947|1.50314>,<11.5089|1.47803>,<11.8935|1.43498>,<12.2781|1.42422>,<12.6923|1.42063>,<13.0769|1.41704>,<13.4615|1.40628>,<13.8757|1.39552>,<14.2604|1.38117>,<14.645|1.38117>,<15.0592|1.3704>,<15.4438|1.35605>,<15.858|1.33812>,<16.2722|1.32735>,<16.6864|1.29148>,<17.071|1.29507>,<17.4556|1.27354>,<17.8698|1.19462>,<18.2544|1.23767>,<18.6391|1.18027>,<19.0533|1.24843>,<19.4675|1.26996>,<19.8521|1.21973>,<20.2367|1.23049>,<20.6509|1.24843>>;

where first row is x and second row is y. i want to interpolate the y values for new x values at the following

xnew:=<<0.119048>,<0.505952>,<0.922619>,<1.30952>,<1.72619>,<2.14286>,<2.52976>,<2.94643>,<3.3631>,<3.77976>,<4.16667>,<4.58333>,<4.97024>,<5.3869>,<5.77381>,<6.19048>,<6.54762>,<6.99405>,<7.38095>,<7.79762>,<8.18452>,<8.60119>,<8.9881>,<9.40476>,<9.82143>,<10.2381>,<10.625>,<11.0417>,<11.4286>,<11.8155>,<12.2024>,<12.5893>,<13.006>,<13.3631>,<13.7798>,<14.1667>,<14.5536>,<14.9405>,<15.3571>,<15.744>,<16.1607>,<16.5774>,<16.9643>,<17.3512>,<17.7381>,<18.125>,<18.5417>,<18.9286>,<19.7024>,<19.3155>,<20.119>,<20.506>>;

 

please help me

 

thanks for your attention in advance

I thought the assume command would force Maple to not return solutions that violated the assumption.  But it does not.  How do I make Maple only return those values according to an assumption?

Here is what I did:

 

When I install Maple 16, It show: Do you want to install watcom-1.3 ? What is the watcom-1.3 file in Maple16

Hi,

I wrote a procedure and saved it into a .mla library, then accidentally lost the file containing the initial code. Can I get it back from the library ? I didn't find the answer in the help on LibraryTools.

Thank you.

To highlight the problem I am haveing let us observe the following example. If we solve the following numerically,

d2/dx2 (s(x)) +s(x) -1=0,

ic: s(0)=1/2,s'(0)=0

How would I go about createing a plot of (s(x),x) for  x a member of [0,2*Pi) (useing polar coordinates clearly)?

The probelm I am haveing is plotting for x a member of [0,2*Pi). I know how to do this for x a member of [0,2*Pi] and (0,2*PI), but not  [0,2*Pi).

My code contains a long "module" so i can't really "split execution group".

but it seems that the exported LaTex file is determined to fit "one segament of code" on one page when I compile...

Likely has been asked before, but I cannot find the answer:

I have a table with a good number of entries, all of them indexed by strings. I'd like to sort the table by ascending index (i.e. alphabetically A...,B... etc) before I write the result to a file. Obviously, the entries have to stay with their respective indices.

Like:

Table([B=4,C=2,A=3]); to be sorted as A=3,B=4,C=2.

The sort command in Maple works with Arrays only; I understand.

Hi,

I'm trying to define a simple forward difference operator Δ to act on a function f(n). I have defined, in a number of ways, Δ(f(n)) = f(n+1) - f(n). This works fine but I want Maple to calculate powers of Δ. e.g Δ2 (f(n))= f(n+2) - 2f(n+1) + f(n). As it stands, Maple returns (f(n+1) - f(n))2 seemingly however I define the functions.
What am I doing wrong? Help much appreciated.

DJF

When I input the following commands in a fresh document

with(VectorCalculus):

SetCoordinates(cartesianx,y,z)

cartesianx,y,z   (1)

Del(xy)

0ex   (2)

 

I get <0,0,0> when the answer is obviously <y,x,0>. What's going on?

Hi every one,

How can I get bouble Curl of this equation

 

 

 

In the above equation, the first term has the Laplacian, the second one has the gradient and in the term "k" is the unit vector and also u=(u1,u2,u3). sqrt(R) is a constant. 

 

Dear everyone.
I'm trying to substitute expressions which are represented by square root into eq.
But, it doesn't work well as shown in the below figure.

First, the 'a' is only substituted into numerator. I'd like to know how 'a' can be also substituted into denominator.
Second, the 'b' can be substituted as I ordered to Maple.

Advice would be appreciated . Thank you !  (If you need my maple code, this will be referred in the below.)

Hi,
I need to solve a big linear system (sparse, if it helps). I first used the "Matrices" and it worked perfectly, but then the matrix got bigger and I got the message "assigning to a long list, please use Arrays". So I learned how to manipulate Arrays and basically wrote the whole program again, but I couldn´t find how to solve A.X=B when A and B are Arrays. And it seems like nobody talks about that on the internet :( please don´t tell me that in 2012, with...

Let's see how we can display patterns, or even images, on 3D plot surfaces. Here's a simple example.

The underlying mechanism is the COLOR() component of a POLYGONS(), GRID(), or MESH() piece of a PLOT3D() data structure. (See here, here, and here for some older posts which relate to that.)

The data stored in the MESH() of a 3D plot structure can be a list-of-lists or, more efficient, an Array. The dimensions of that Array are m-by-n-by-3 where m and n are usually the size of the grid of points in the x-y plane (or of points in the two independent parameter spaces). In modern Maple quite a few kinds of 3D plots will produce a GRID() or a MESH() which represent the m-by-n independent data points that can be controlled with the usual grid=[m,n] option.

The plot,color help-page describes how colors may specified (for each x-y point pair to be plotted) using a procedure f(x,y). And that's fine for explicit plots, though there are some subtleties there. What is not documented on that help-page is the possibility of efficiently using an m-by-n-by-3 or an m*n-by-3 datatype=float[8], order=C_order Array of RGB values or am m*n float[8] Vector of hue values to specify the color data. And that's what I've been learning about, by experiment.

A (three-layer, RGB or HSV) color image used by the ImageTools package is also an m-by-n-by-3 Array. And all these Arrays under discussion have m*n*3 entries, and with either some or no manipulation they can be interchanged. I wrote earlier about converting ImageTools image structures to and from 2D density-plots. But there is also an easy way to get a 3D density-plot from an ImageTools image with a single command. That command is ImageTools:-Preview, and it even has a useful options to rescale. The rescaling is often necessary so that the dimensions of the COLOR() Array in the result match the dimensions of the grid in the MESH() Array.

For the first example, producing the banded torus above, we can get the color data directly from a densityplot, without reshaping/manipulating the color Array or using any ImageTools routines. The color data is stored in a m*n Vector of hue values.

But first a quick note: Some plots/plottools commands produce a MESH() with the data in a list-of-lists-of-lists, or a POLYGONS() call on a sequence of listlists (eg. `torus` in Maple 14). For convenience conversion of the data to a 3-dimensional Array may be done. It's handy to use `op` to see the contents of the PLOT3D() structure, but a possible catastrophe if a huge listlist gets printed in the Standard GUI.

restart:
with(ImageTools):with(plots):with(plottools):
N:=128:

d:=densityplot((x,y)->frem((x-2*y),1/2),0..1,0..1,
                      colorstyle=HUE,style=patchnogrid,grid=[N,N]):
#display(d);

c:=indets(d,specfunc(anything,COLOR))[1];

                         /     [ 1 .. 16384 Vector[column] ]\
                         |     [ Data Type: float[8]       ]|
               c := COLOR|HUE, [ Storage: rectangular      ]|
                         \     [ Order: C_order            ]/

T:=display(torus([0,0,0],1,2,grid=[N,N]),
           style=surface,scaling=constrained,axes=none,
           glossiness=0.7,lightmodel=LIGHT3):
#op(T); # Only view the operands in full with Maple 16!

# The following commands both produce the banded torus.

#op(0,T)(MESH(op([1,1..-1],T),c),op([2..-1],T)); # alternate way, M16 only

subsop([1,1]=[op([1,1],T),c][],T);

Most of the examples in this post use the command `op` or `indets` extract or replace the various parts of of the strcutures. Perhaps in future there could be an easy mechanism to pass the COLOR() Array directly to the plotting commands, using their `color` optional parameter.

In the next example we'll use an image file that is bundled with Maple as example data, and we'll use it to cover a sphere. We won't downsize the image, so that it looks sharp and clear (but note that this may make your Standard GUI session act a bit sluggish). Because we're not scaling down the image we must specify a grid=[m,n] size in the plotting command that matches the dimensions of the image. We'll use ImageTools:-Preview as a convenient mechanism to produce both the color Array as well as a 3D densityplot so that we can view the original image. Note that the data portion of the sphere plot structure is an m-by-n-by-3 Array in a MESH() which matches the dimensions of the m-by-n-by-3 Array in the COLOR() portion of the result from ImageTools:-Preview.

restart:
with(ImageTools):with(plots):with(plottools):
im:=Read(cat(kernelopts(mapledir),"/data/images/tree.jpg")):

p:=Preview(im):

op(1,p);

                 /                    [ 235 x 354 2-D  Array ]  
                 |                    [ Data Type: float[8]  ]  
             GRID|0 .. 266, 0 .. 400, [ Storage: rectangular ], 
                 \                    [ Order: C_order       ]  

                    /     [ 235 x 354 x 3 3-D  Array ]\\
                    |     [ Data Type: float[8]      ]||
               COLOR|RGB, [ Storage: rectangular     ]||
                    \     [ Order: C_order           ]//

q:=plot3d(1, x=0..2*Pi, y=0..Pi, coords=spherical, style=surface,
          grid=[235,354]):

display(PLOT3D(MESH(op([1,1],q), op([1,4..-1],p)), op(2..-1,q)),
           orientation=[-120,30,160]);
First 1555 1556 1557 1558 1559 1560 1561 Last Page 1557 of 2224