Maple 16 Questions and Posts

These are Posts and Questions associated with the product, Maple 16

hi

 

I have two sets of data namely x[i] and y[i], at first i want to pass a spline from all points (points are in 2d x-y diagram) and then extract some point from that. how can i write the suitable code  in maple? 

thanks

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

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

I am dealing with a problem in engineering mechanics, but my when using maple to solve the governing nonlinear equation with 4 bcs, I meet with error. 
Error, (in dsolve/numeric/bvp) initial Newton iteration is not converging

my code is :
deq := diff(y(x), `$`(x, 4)) = -.364*(diff(y(x), x))^2*(diff(y(x), `$`(x, 2)))+1.74*10^(-7)
bc := y(0) = 0, (D(y...

I have a collection of functions defined either in terms of a single variable - call it r - or in terms of (r and) the other functions of r.

To be more specific, there are two free functions B(r) and N(r), a function theta defined in terms of N(r) and B(r) (and their derivatives) and r, and a free function V(theta).

Finally I have a function, call it f, written in terms of B(r) and N(r) (and their derivatives), r, and V(theta) and its derivatives with respect to both theta and r.

I am right now attempting to install Maple16, and somewhere in the installation process the following appears to be happening: "installing... THBI_____.ttf". This something then proceeds to be installed for more than half an hour, at which point I stopped the installation process. Is this supposed to take super long or might something be wrong here? 

Many years ago, I played Scrabble competitively. One of the first things a beginner tournament player should do is learn the two-letter word list. Recently, I created a worksheet that tests your knowledge of all the valid two-letter words accepted in official tournament play in North America. The worksheet makes extensive use of the StringTools package which has terrific tools for manipulating words.

The worksheet link is below if you'd like to try it out, and I'll...

There is a flaw (bug) in the DEplot routine.  If you load the plottools package before using DEplot with the arrows=line option, the DEplot routine tries to use the line definition from the plottools package.  A worksheet illustrating this problem is below.

Dear All,

Im trying to model a rigid body, hanging from a string. In the end I have a system of 5 Equations of Motion and with all the Initial conditions I use dsolve. It gives me the error 

Error, (in dsolve/numeric/DAE/isolate) is not linear

I know the system is not lnear but that should be not a problem. One strange thing I notice is that Maple adds these dots in some equations: (the one after 15 but please see original file)

15.*cos(`&varphi;z`(t...

The Strengths of maple 16 is Algebra. What the other application of maple ?

I downloaded the Maple16LinuxX86_64Installer.bin from Maplesoft and installed Maple16 on my Laptop with Arch Linux X86_64. I started maple using xmaple to get to the Worksheet. When I type a simple instruction as 4+5 and hit the Enter key, I get a error message which says Kernel Connection Not Available. - Waiting for kernel connection. When I cancel that error message another message pops up which say Kernel connection has not yet been established ....... IPv6 is enabled by...

I am playing around with the PolynomialFit command in maple.
If I want to get a return of 1% then I can simply plug in the return at time t
for v in the expression below. That works for all different returns.

I tried to use multiple light sources with transparency for 3D plots and could not get it to work.  There are indications in the plot,structure help that this is supposed to be possible.  I have attached a worksheet that demonstrates some of the problems with the "light" and "LIGHT" options for 3D plotting.  Much of the output has been removed since the graphics take so much space.  The same plots are generated in both Windows and Linux.

Does anyone...

Apart from the online description of this new Maple 16 feature here, there is also the help-page for subexpressionmenu.

I don't know of a complete listing of its current functionality, but the key thing is that it acts in context. By that I mean that the choice of displayed actions depends on the kind of subexpression that one has selected with the mouse cursor.

Apart from arithmetic operations, rearrangements and some normalizations of equations, and plot previews, one of the more interesting pieces of functionality is the various trigonometric substitutions. Some of the formulaic trig substitutions provide functionality that has otherwise been previously (I think) needed in Maple.

In Maple 16 it is now much easier to do some trigonometric identity solving, step by step.

Here is an example executed in a worksheet. (This was produced by merely selecting subexpressions of the output at each step, and waiting briefly for the new Smart Popup menus to appear automatically. I did not right-click and use the traditional context-sensitive menus. I did not have to type in any of the red input lines below: the GUI inserts them as a convenience, for reproduction. This is not a screen-grab movie, however, and doesn't visbily show my mouse cursor selections. See the 2D Math version further below for an alternate look and feel.)

expr:=sin(3*a)=3*sin(a)-4*sin(a)^3:

expr;

sin(3*a) = 3*sin(a)-4*sin(a)^3

# full angle reduction identity: sin(3*a)=-sin(a)^3+3*cos(a)^2*sin(a)
-sin(a)^3+3*cos(a)^2*sin(a) = 3*sin(a)-4*sin(a)^3;

-sin(a)^3+3*cos(a)^2*sin(a) = 3*sin(a)-4*sin(a)^3

# subtract -sin(a)^3 from both sides
(-sin(a)^3+3*cos(a)^2*sin(a) = 3*sin(a)-4*sin(a)^3) -~ (-sin(a)^3);

3*cos(a)^2*sin(a) = 3*sin(a)-3*sin(a)^3

# divide both sides by 3
(3*cos(a)^2*sin(a) = 3*sin(a)-3*sin(a)^3) /~ (3);

cos(a)^2*sin(a) = sin(a)-sin(a)^3

# divide both sides by sin(a)
(cos(a)^2*sin(a) = sin(a)-sin(a)^3) /~ (sin(a));

cos(a)^2 = (sin(a)-sin(a)^3)/sin(a)

# normal 1/sin(a)*(sin(a)-sin(a)^3)
cos(a)^2 = normal(1/sin(a)*(sin(a)-sin(a)^3));

cos(a)^2 = 1-sin(a)^2

# Pythagoras identity: cos(a)^2=1-sin(a)^2
1-sin(a)^2 = 1-sin(a)^2;

1-sin(a)^2 = 1-sin(a)^2

 

The very first step above could also be done as a pair of simpler sin(x+y) reductions involving sin(2*a+a) and sin(a+a), depending on what one allows onself to use. There's room for improvement to this whole approach, but it looks like progress.

Download trigident1.mw

In a Document, rather than using 1D Maple notation in a Worksheet as above, the actions get documented in the more usual way, similar to context-menus, with annotated arrows between lines.

expr := sin(3*a) = 3*sin(a)-4*sin(a)^3:

expr

sin(3*a) = 3*sin(a)-4*sin(a)^3

(->)

2*cos(a)*sin(2*a)-sin(a) = 3*sin(a)-4*sin(a)^3

(->)

4*cos(a)^2*sin(a)-sin(a) = 3*sin(a)-4*sin(a)^3

(->)

4*cos(a)^2*sin(a) = 4*sin(a)-4*sin(a)^3

(->)

cos(a)^2*sin(a) = sin(a)-sin(a)^3

(->)

cos(a)^2 = (sin(a)-sin(a)^3)/sin(a)

(->)

cos(a)^2 = 1-sin(a)^2

(->)

1-sin(a)^2 = 1-sin(a)^2

(->)

1 = 1

``

Download trigident2.mw

 

I am not quite sure what is the best way to try and get some of the trig handling in a more programmatic way, ie. by using the "names" of the various transformational formulas. But some experts here may discover such by examination of the code. Ie,

eval(SubexpressionMenu);

showstat(SubexpressionMenu::TrigHandler);

The above can leads to noticing the following (undocumented) difference, for example,

> trigsubs(sin(2*a));
              
                                 1       2 tan(a)
[-sin(-2 a), 2 sin(a) cos(a), --------, -----------,
                              csc(2 a)            2
                                        1 + tan(a)

    -1/2 I (exp(2 I a) - exp(-2 I a)), 2 sin(a) cos(a), 2 sin(a) cos(a)]

> trigsubs(sin(2*a),annotate=true);

["odd function" = -sin(-2 a), "double angle" = 2 sin(a) cos(a),

                               1                       2 tan(a)
    "reciprocal function" = --------, "Weierstrass" = -----------,
                            csc(2 a)                            2
                                                      1 + tan(a)

    "Euler" = -1/2 I (exp(2 I a) - exp(-2 I a)),

    "angle reduction" = 2 sin(a) cos(a),

    "full angle reduction" = 2 sin(a) cos(a)]

And that could lead one to try constructions such as,

> map(rhs,indets(trigsubs(sin(a),annotate=true),
>                identical("double angle")=anything));

                             {2 sin(a/2) cos(a/2)}

Since the `annotate=true` option for `trigsubs` is not documented in Maple 16 there is more potential here for useful functionality.

First 33 34 35 36 37 38 39 Page 35 of 40