Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

hello 
i have a long proc i am defining in a loop inside the proc for some reason it calculates the value of a1[j+1] and a2[j+1] and assigns it(in the case of the picture j=1 and in j=2 it doesnt sub) but when it is called again in the next iteration  it doesnt sub the value it just calcluated ! 
i would be so thankful for any help ive been stuck on this for a while now 

First of all I would like to wish everyone a happy, prosperous and especially healthy 2022!

I do not understand why my second formula in the attached sheet gives the wrong answers. I have added the correct answers in the vector "Correct". I still find it a bit cumbersome to work elementwise in Maple but that is most likely because still being relatively new to the program. Any help is more than appreciated 

Elementwise.mw 

What/Whare are the maple initialization files.

I have a problem with libname.

According to maple help, I should create/modify ~/.mapleinit.

> cat ~/.mapleinit

libname := "/usr/local/Maple2021/lib","/home/tomdean/maple/toolbox/maplev/lib","/home/tomdean/maple/toolbox/Syrup/lib";

But, when I start maple (in emacs), libname is only the first part, "/usr/local/Maple2021/lib",

hello 
i am trying to define a proc that has a local arrays and lists in it
how do i define it in the local row ? saying a is a local array in the proc, do i just write a ? 

thank you 

I installed the cloud version of Syrup with xmaple, by clicking the cloud icon, etc. It is loaded with xmaple and cmaple. But, not in maple running in emacs.

with(Syrup);
(**) Error, invalid input: with expects its 1st argument, pname, to be of type
{module, package}, but received Syrup
(**) 

Tom Dean

Hello everybody! Happy new year! 

Im back this year. I bought a flatbedscanner to scan some books. Already scanned 3 whole books in 2 days, its a blast!

Ive got a question about some complex numbers that i have to draw on a grid. 

The translated question is: "draw in the complex grid the following collections:"

Here is what ive got. But the book does not give any solutions for me to check on. So its not great at all to have to learn like that. 

Download Mapleprimes_Book_2_Question_3.mw

a.

-2+I = 2

sqrt((x-2)^2+(y+1)^2) = sqrt(2)

((x-2)^2+(y+1)^2)^(1/2) = 2^(1/2)

(1)

smartplot(sqrt((x-2)^2+(y+1)^2) = sqrt(2), sqrt((x-2)^2+(y+1)^2) = 1)

 

b.

-1+I*2

-1+2*I

(2)

(1/2)*sqrt((x-4)^2+(y+2)^2) = 0

(1/2)*((x-4)^2+(y+2)^2)^(1/2) = 0

(3)

smartplot(sqrt((x-1)^2+(y+2)^2) = sqrt(3))

 

c.

Error, `;` unexpected

 

NULL

``

``

``

#d.

sqrt(x^2+y^2) = 1

(x^2+y^2)^(1/2) = 1

(4)

sqrt(x^2+y^2) = 3

(x^2+y^2)^(1/2) = 3

(5)

smartplot(sqrt(x^2+y^2) = 1, sqrt(x^2+y^2) = 3, x = -(1/4)*Pi, x = 3*Pi*(1/4))

 

-(1/4)*Pi

-(1/4)*Pi

(6)

evalf(%)

-.7853981635

(7)

3*Pi*(1/4)

(3/4)*Pi

(8)

evalf(%)

2.356194490

(9)

e.

everything under y=0 and everything to the right of x=0

plot(x = 0 .. 10, y = -10 .. 0)

 

f.

sqrt(x^2+y^2) = 0

(x^2+y^2)^(1/2) = 0

(10)

sqrt(x^2+y^2) = 2

(x^2+y^2)^(1/2) = 2

(11)

smartplot(sqrt(x^2+y^2) = 0, sqrt(x^2+y^2) = 2, x = -(1/4)*Pi, x = (1/3)*Pi)

 

``

``

``

``

``

``

``

The book gave an example, the translations says:"Draw in the complex grid the collection:
Solution

This we can read as: draw all complex numbers for which the distance to i is similar to 2. This collection is a circle in the complex grid with the center (0,1) and a radius of 2. See the figure on the left.

Draw in the complex grid the collection:

Solution

We can wright     This we can read as: Draw all complex numbers for which the distance to -3+2i is simular to 1. This collection is a circle in the complex grid, see the figure on the right. Another method is z=x+iy, we can substitute this into. This substitution delivers a relation between x and y, after which we can draw each z=x+iy that complies with |z+3-2i|=1. The substitution gives us:  frown which leads,   so that  . This is again a formula of a circle in the complex grid with the middlepoint (-3,2) and a radius of 1." 

Some more examples:

I also added a PDF of the chapter, so you can see what a flatbed scanner can do (a canon lide 400) and adobe DC (to combine the scans and perform "OCR" on the text so the computer can read the text so you can copy and paste it and search the text with CTRL+F. A must have if you are serious in doing studies in my opinion, its way way faster to look up things like that than to go to a register or glossary at the back of the book that may not even have the topic listed what you are looking for.). It is very impotant that you get good scans of the PDF program will not read your numbers and letters in the scanned file well. The solutions (after having scanned half a book already, so i had to do that part again) was to lay the book on the right side of the scanner, with half the book on top of the scanner. Press on the back of the book, and lay 2 hands on top to press the page (lightly) against the glass. When you are dont with that page, you invert the book and keep half the book on the right side again. The PDF program (adobe DC) will flip the scans for you with the OCR recognition function. 



I thought id share this with you, while this costed me 2 books to find this out, and costed me a lot of time. Time a valuable, that is why i started the scanning in the first place. It better be good on the first run.  

Looking at the google translate results the "grid" probably is a "plane" just as in a 3d drawing program. 

Any way, i hope i was specific enough. Im having a bit of trouble with this planing of complex numbers. 

Greetings,

The Function. 

Maple_question_3.pdf

Download Mapleprimes_Book_2_Question_3.mw

Hi Guys,

I am not sure where I'm going wrong, but last year (I am sure!) the integral of this equation (eq2) was given by Maple in terms of the Hypergeom function.

eq2:=x^(-2)/((z)-x^(a));
Int(f,x)=int(eq2,x=1..x1);

However, this year, I get no further than the following.  What am I doing wrong here, I'm now using Maple 2021.2.

In previous version of maple, the above commands would report a solution in terms of hypergeometric 2F1 or LerchPhi.  Something like this, -(-LerchPhi(x1^a/z,1,-1/a)+LerchPhi(1/z,1,-1/a)*x1)/z/a/x1

How do I get Maple 2021.2 to provide the solution to the integral?

Thanks very much,

Rhod

I am attempting to use maplev mode for emacs. Ubuntu 20.04.3, Emacs 26.3, maplev-mode from git, release-2.36-59-g142c03. maple 2021.

I copied mload from an older computer and added a line to define maple, after the original maple definition line.

MAPLE=${MAPLE:-maple} # Maple script
MAPLE=/usr/local/Maple2021/bin/maple  <=== added

I compiled and installed maplev-mode. I had to touch doc/version.texi because the file did not exist. But, otherwise, I saw no errors.

I added lines to my emacs init.el as per the README.md.

maplev-mode seems to load when I edit a .mpl file.

However, mint is not defined.  Where should I change to define the location of mint?

/usr/local/Maple2021/bin/mint

Tom Dean

Hi all,

I want to verify the sum of associated Laguerre polynomials as shown in the picture below. I have tried numerical, but I am struggling with the syntax.

Anyone know how to do that?

For compact technical documentation it would be desirable to create output in the form of a=b=c, which is a style that is commonly used in textbooks (probably for the same reason).

It is possible to create such an output with non executable math and probably also with document blocks. This is error prone and time consuming. I am looking for a solution where I can use Maple commands to refer to expressions to assemble an a=b=c output.

The advantage: Using commands would change the output when the expression change (at least after re-execution of the document).

How can this be done?

I'm attempting to use the GoogleMaps command however it doesn't appear to work

FindLonLat("Waterloo") just returns the command.  What now?

Colored axes and showing 5 colored branches (Riemann surfaces) and ln(z)  as a spiral

There is a plotcompare(log(z), expression_plot, 3); branches(ln);

FunctionAdvisor(branch_cuts, log(z));
                         [ln(z), z < 0]

The principal branch is the red colored one : Pi..-Pi (difficult to see here )


                                       pic 1

Compare this pic 1  with the Imaginaire plot log(z) in plotcompare command.

Hi,

Happy new year.

I have a problem, if it is possible please guide me.

I want to add "arrows=small/curve/...." (i.e. vector fields) to the following maple's example, but unfortanutley it does not work (see the green code and run it ....).

It is not important to me that I use phaseportrait or DEplot or dfieldplot, I just want to show arrows in any "scene" that I choose.

restart;

with(plots);
with(DEtools);
with(VectorCalculus);
BasisFormat(false);

DEplot({D(w)(t) = x(t) - w(t)*z(t), D(x)(t) = y(t) + z(t), D(y)(t) = -x(t) - y(t) + w(t), D(z)(t) = x(t) + y(t) - z(t)}, [x(t), y(t), z(t), w(t)], t = 0 .. 10, [[x(0) = 0, z(0) = 0.25, y(0) = 0.5, w(0) = 0.165]], scene = [z(t), w(t)], numsteps = 101, axes = BOXED, linestyle = dashdot, method = rkf45, startinit = true, maxfun = 5000, xtickmarks = 10, arrows = medium);

Indeed I want to get something like this:

DEplot([diff(x(t), t) = -0.5*x(t)*y(t), diff(y(t), t) = 0.5*x(t)*y(t) - 0.15*y(t)], [x(t), y(t)], t = 0 .. 40, x = 0 .. 1, y = 0 .. 0.6, [[x(0) = 0.99, y(0) = 0.01]], arrows = medium);

In this plot, we can observe arrows (vector fields), but in the first example, I cannot to handle it.

Thanks in advance.

In this example, i have a top module A. Inside it, I have module named my_RECORD (which happened to be option object) that I want to return back to caller when they call a proc.

Maple allows me to declare the proc to return my_RECORD. No problem., But when making a local variable inside the proc and using o::my_RECORD it complains  that my_RECORD does not exist. 

The solution is to change o::my_RECORD to o::A:-my_RECORD

My question why it did not complain the same way on the return value on the proc?   for me, they are both semantically the same. One says the proc returns this type, and the other says the local variable is this type. So why had to do A:-my_RECORD on one but not the other? 

Here is an example. Maple 2021.2 on windows 10.

restart;

interface(warnlevel=4);
kernelopts('assertlevel'=2):

3

A:=module()
 #this is the RECORD to return
  local module my_RECORD()
   option object;
   export data::string:="";
  end module;
   
  export do_analysis:=proc()::my_RECORD;   
    local o::my_RECORD; #error here. But this is the same above line above?    
    o:=Object(my_RECORD);
    o:-data:="test";
    return o;        
  end proc;
end module;

_m2642451182336

A:-do_analysis()

Error, (in do_analysis) type `my_RECORD` does not exist

#FIXED BELOW
restart;

A:=module()
    #this is the RECORD to return
    local module my_RECORD()
        option object;
        export data::string:="";
    end module;
   
    export do_analysis:=proc()::my_RECORD;
          local o::A:-my_RECORD;    
          o:=Object(my_RECORD);
          o:-data:="test";
          return o;        
    end proc;
end module;

_m2642339719872

A:-do_analysis()

module my_RECORD () export data::string; option object; end module

 

Download A_no_lib.mw

As maple 1d input:

expr:=(1/2)*a*(b/c)/d;     

As 2 d input : 

This rightside of the equation i like to get in Maple , but how?

answer

First 346 347 348 349 350 351 352 Last Page 348 of 2216