MaplePrimes Questions

Dear Feinds,

How can I compute a double summation of the following form in Maple.

                                                      ∑5m=1  ∑j+k=m-1 (2m (Dk(a_m*f)) (Dj(f)))

where Drepresents nth order derivative.

Thank you for your help!

EDIT 1

Summand added

EDIT 2

Function "f" in the first derivative is changed to "a_m*f" where a_m (variable coefficients) represents any function of x.

First of all thank you so much for all the nice answers.

Here, the notation a_m doesn't work as I was expecting and then I thought let's just make it a(m) for simplicity, it seemed to work fine but unfortunatelyassumes it as a constant function. How can I rectify this problem?

 

Hi Mapleprimes,

I have a conic section that is parametric.  Namely,

x(t) = 9t^2 + 3t  + 367
y(t) = 3t^2 + 2t + 122

How can I find the Vertex and Foci of this curve?
Also, How can I do this for the general case?

Regards,

Matt

Dear Friends,

I am having trouble in defining a linear differential operator. This is how Maple defines a linear differential operator

"A differential operator L in C(x)[Dx] is an expression a_0*Dx^0+ ... +a_n*Dx^n where a_0, ... , a_n are elements of C(x). So it is a polynomial in Dx with rational functions as coefficients."

Here's the link http://www.maplesoft.com/support/help/maple/view.aspx?path=diffop

where Dx^n implies n-th derivative with respect to x.

Now I want to know how can I apply this operator to a given function. Here is a failed example:

>L :=Dx^2+Dx;
Dx^2 + Dx
>simplify(L(x));
Dx(x)^2 + Dx(x)

I was expecting to get 1 if the given opertor is applied to x. I would really appreciate if someone can help me with this. 

Many thanks.

 

Hi, i got a litlle problem with fromats, i m realy bad at this.
i got procedure 'getone(z::list)' i was execute it like this  
>getone([seq(lineP[i], i = 1 .. pm)]::list)
where lineP is 

>pm := 3;
>rollx := rand(98.0 .. 102.0); rolly := rand(-1.0 .. 5);
>rolll := rand(.5 .. 1.0); rollf := rand(0. .. evalf(2*Pi));
>rollm := rand(0. .. 20.0);

>for i to pm do lineP[i] := [rollx(), rolly(), rolll(), rollf(), rollm()] end do;

it's pm times of z:=[rollx(), rolly(), rolll(), rollf(), rollm()] ::list

and i need make optimization work for any pm=1..100; with rabdomly generated iteration point as above.

The main queston is how make minimize as below
Minimize(z,variables=[z],   initialpoint={z=[seq(lineP[i], i = 1 .. pm)]},iterationlimit=1000,optimalitytolerance=0.01)

work with z::list kind of 

[[100.7798614, 1.109653266, 0.9840371500, 4.257816686, 9.737110573][100.0135459, 0.887539481, 0.9144164697, 3.980093624, 7.343851161][100.0661308, 3.724268229, 0.5020544909, 2.052134822, 14.37408543]]








I have some large worksheets in maple which I would like to export to Latex. Currently, the exported document included both the commands and the results. For example, if the maple code looks like:



The latex document will be:

    %% Created by Maple 17.01, Windows 7
    %% Source Worksheet: test4Export.mw
    %% Generated: Fri Sep 11 11:25:29 CEST 2015
    \documentclass{article}
    \usepackage{maplestd2e}
    \def\emptyline{\vspace{12pt}}
    \begin{document}
    \pagestyle{empty}
    \DefineParaStyle{Maple Heading 1}
    \DefineParaStyle{Maple Text Output}
    \DefineParaStyle{Maple Dash Item}
    \DefineParaStyle{Maple Bullet Item}
    \DefineParaStyle{Maple Normal}
    \DefineParaStyle{Maple Heading 4}
    \DefineParaStyle{Maple Heading 3}
    \DefineParaStyle{Maple Heading 2}
    \DefineParaStyle{Maple Warning}
    \DefineParaStyle{Maple Title}
    \DefineParaStyle{Maple Error}
    \DefineCharStyle{Maple Hyperlink}
    \DefineCharStyle{Maple 2D Math}
    \DefineCharStyle{Maple Maple Input}
    \DefineCharStyle{Maple 2D Output}
    \DefineCharStyle{Maple 2D Input}
    \begin{Maple Normal}{
    \begin{Maple Normal}{
    A test equation}\end{Maple Normal}
    
    }\end{Maple Normal}
    
    \begin{Maple Normal}{
    \begin{Maple Normal}{
    }\end{Maple Normal}
    }\end{Maple Normal}
    \mapleinline{inert}{2d}{A = c+d}{\[\displaystyle A=c+d\]}
    \begin{maplegroup}
    \mapleresult
    \begin{maplelatex}
    \mapleinline{inert}{2d}{A = c+d}{\[\displaystyle A=c+d\]}
    \end{maplelatex}
    \end{maplegroup}
    \begin{Maple Normal}{
    \begin{Maple Normal}{
    \mapleinline{inert}{2d}{}{\[\displaystyle \]}
    }\end{Maple Normal}
    }\end{Maple Normal}
    \end{document}

and the output is:


Is there a way to solve this once while exporting in Maple instead of editing the latex code manually?

I imported data into maple from excel.  I was able to make a scatterplot with my data and a regression line, but I have been unsuccessful in trying to combine them both onto the same plot.  I tried multiple different ways but still could not get it to work.  

I think it has to do something with the brackets around each element inside my imported array, but I am not sure.  Any ideas would be nice.

My objective is to put the regression line and scatterplot on same graph.project1.mwproject1.mw  

Thanks much.

Matt 

I have a series of formulae arranged as a vector.  I need to do two things to this vector:

(1) Optimize it using 'tryhard'.  

(2) Use the optimized results to create a new procedure.

 

I can do either (1) or (2) alone, but when I try to combine them as one command it never works.  A simplified example of what I'm attempting with the resulting error message is below:

with(codegen, optimize, makeproc);
V := Vector(4);
V[1] := x+y;
V[2] := x^2+y^2;
V[3] := x^3+y^3;
V[4] := x^2+y^2+x+y;

T := makeproc([optimize(V, 'tryhard')], [x, y]);

Error, (in codegen/makeproc) Unrecognized input [t78 = x+y, t73 = y^2, t74 = x^2, t77 = t73+t74, t1 = (Vector(4, {(1) = t78, (2) = t77, (3) = t73*y+t74*x, (4) = t77+t78}))]


It seems that makeproc cannot handle a combination of optimized assignments and a vector of formulae.  Is there anyway to fix this?

 

Thanks

Hello guys, I have a question. Is there any possibility to calculate two or more procedures at same time in the maple18 ?. I m thinking about using of the Grid or threads tools.

My problem is:

Given two functions/ procedures, f1(x,y) and f2(x,y). I need make an parallel computation of f1 and f2 and after i need get

f3 = f1+f2.

I am very grateful for the help.

I have the following equation

phi = -arctan(sin(2*theta)*(cos(beta)-1)/(cos(beta)*cos(2*theta)-cos(2*theta)-cos(beta)-1))+theta;

phi = -arctan(sin(2*theta)*(cos(beta)-1)/(cos(beta)*cos(2*theta)-cos(2*theta)-cos(beta)-1))+theta

 

In the denominator I wish to collect the two cos(2*theta) terms  into a single term, as in

(1-cos(beta))*cos(2*theta)

 

Is there a straighforward way of doing it?

 

plots:-implicitplot((-2.0)^x-y,x=-sqrt(2)..-exp(-1),y=-1.5..1.5);

I tried surd, but there is a limitation (integer order).

 

 

 

 

As you can see, could you know how many columns of matrix ee has?

It is not easy.

The true column number is 7.

Is there a good method to sperate differetn columns apart? for example, use comma

Hi,

 I am using a very basic function in Statistics package as below and get error. 

X := RandomVariable(Normal(a, b));

I was having trouble importing an excel sheet

with(ExcelTools):
a:=Import("c:/inquire.xls","test1a.tabs","A2:B50")

  Error, (in ExcelTools:-Import) There was an error reading the Excel file

The excel sheet only had one tab visible named test1a.tabs

However it loaded fine without the range and sheetname specified
      a:=Import("c:/inquire.xls")
             

and it loaded fine using the sheet name as a number

     b:=Import("c:/inquire.xls",1,"A2:B50")

             

 

I was wondering if anyone else experienced this or if I was doing something wrong someone could point out.

 

I find fsolve() to be curiously unstable. Some of the behaviour I can guess at, but other parts are not as clear.

 

Define a function.

P := x->fsolve(exp(-(1/100)*t^2)*cos(2*t),t=x):

plot(P,4..5,smartview=false);

First 1231 1232 1233 1234 1235 1236 1237 Last Page 1233 of 2428