Maple 2015 Questions and Posts

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

Hello everyone, 

 

I'm currently taking a Chaos and Fractal Geometry class that did not have a pre-req of computer programming or knowledge of Maple, but I am apparently the only person in the class who has not taken a class/does not have this knowledge so my professor really flew by teaching the material. My sob story aside, I was hoping you great people would be able to help me out with (what are apparently) really basic procedures and plots while I try to read up on how to actaully do it myself (if anyone has a good supplement to recommend, I'm all ears!). Anyway, here are the one's that I'm stumped on:

  • "Write a Maple proc L that takes as input two lists and returns as output a set containing the terms they have in common (not necessarily in the same position). For example, L([1, 3, x, 5],[2, x, 5, 2, 1, 8]) should return [1, x, 5]."
    I'm thinking this is going to use some form of the intersection command, but I cannot for the life of me figure out how to set up the syntax
  • "Write a Maple program that implements the Euclidean algorithm to compute the gcd(x, y) for any natural numbers x, y (except x = y = 0). Your program should not just compute the gcd, but should do so by implementing the Euclidean algorithm directly (i.e. proc(x,y) RETURN(gcd(x,y)) end; is not what I am looking for here! :) )."
    If only he would've let me do the easy one :(
  • "Write a Maple program to plot the Pythagorean spiral. The program should take a single positive integer n as an argument and plot the spiral until the side of length n is reached"
    Not even a clue on how to approach this one. 

 

Thanks again to any and all help/recommendations you can make. I really appreciate it!

Hello

I have this function:

 

f(x)=80x-2x2

I want to plot it (and ofcourse define it)

 

I then need to find A'(x)= 0 which has to give 20, but my maple wont do that.

 

Help me thanks.

Hello

 

How do I define this function? s(t) = 5*t1/2

This function shows the pace of a particle. I have to decide the time when the pace of the particle is 2 m/s

 

help 

Is there a way to loop over an entire worksheet I already have? I am too lazy to retype everything into one for loop, and I couldn't just copy and paste everything into one command thing (the space you make when you shift-enter). Is there something I can put before my worksheet that runs it, changes one variable, runs it again, etc.?

Thanks! I hope it is clear what I am asking. 

about the help menu of maple2015

I cannot find the help-manual menu at th maple2015

but I can find it at maple18.

how can I use the help-manuals..-List of Packages  from maple2015?

 

 

 

Why does the collect command work for some expressions and not for others. Here is a screen shot

I assume the collect command is supposed to rewrite the expression in terms of the variable descending order.

p := expand((a^2+2*x)*(a^2+2*x));
                        4      2        2   2
                       a  + 4 a  x + 4 x

collect(p, x);
                        4      2        2   2
                       a  + 4 a  x + 4 x

Does not work.

But if you look at the screenshot , it works for other expressions.

I am trying to solve and plot a diff. eq. with two initial condtions and keep getting the same error.

F1 := diff(x(t), `$`(t, 2))+omega^2*sin(x(t)) = 0;

g := 9.8; L := 1; omega := g/L;

sol := dsolve({F1, D(x)*0 = 0, x(0) = (1/2)*pi}, x(t), numeric);
Error, (in dsolve/numeric/process_input) invalid specification of initial conditions, got 0 = 0

 any help or suggestions would be appreciated

Hello Primers

I am doing some homework with the software Maple 2015 where I am supposed to design a lamp through creating some line segments and a circle in a 2d coordinate system. But my question is, how do I add a third dimension and rotate all these line segments around the y-axis, so I can get an idea of how it looks like in 3d?

Here is a picture

Thanks in advance

Bad title, I know. 

Suppose I have solved an ODE numerically, say for a function f(x). Now, I want to solve another ODE numerically, given by

diff(g(x),x) = f(x)*g(x)

I want to solve for g(x), and I only know f(x) from the numerical solution I obtained in the first ODE. How do I implement this in Maple?

I attached a worksheet with my naive attempt with this simple example. Basically I do not know how to set up the differential equation which I would then input to dsolve. 

ode.mw

Thanks!

I am trying to integrate solutions to a set of differential equations I have obtained numerically but keep getting this error:

Error, (in solW) invalid input: subs received sol(r), which is not valid for its 1st argument

For simplicity, let's say I am interested in integrating the function W(r), which I obtain from 

sol := dsolve({eqns, ics}, numeric, abserr = 10^(-10), relerr = 10^(-10), range = ymin .. ymax)

I then use

solW := r -> subs(sol(r), W(y))

This gives me W(r) for any r in the range ymin to ymax. But I cannot do anything with this function. For example, 

int(solW(r),r=ymin..ymax) or plot(solW(r),r=ymin..ymax) give the error above. I know that I can plot the solutions using odeplot, but is there something analogous for integrating the solutions? 

Thanks!

Hello

Previously today I had to do some chemistry assignments, which I did in maple, my long time favorite for such assignments.

However I have now encountered a severe problem. I cannot open my worksheet file, .mw. When I try to open it, it asks me whether to open the file as maple text, plain text or maple input??? 

Whatever one I choose, it either opens a blank page in maple, or maple just crashes.

The file in question should be attached. If you can open it, don't mind the language, it is danish

Any help will be greatly appreciated, best regards, Jens

Maple Worksheet - Error

Failed to load the worksheet /maplenet/convert/Opgaver_fra_bog.mw .

Download Opgaver_fra_bog.mw

As a very good application for viewing and calculation of the components of acceleration either tangential or normal. Besides immediately it is shown an Application for physics.

Componentes_de_la_Acelelación.mw

(in spanish)

L. Araujo C.

 

 

Here we see the projection of a vector onto another using different concepts ranging from linear algebra to vector calculus. Implemented components thus seen in three-dimensional space.

 

Proyecciones_Vectoriales.mw

(in spanish)

L.Araujo C.


plot([Y2(t),-X2(t),0...100],numpoints=100);


Error, (in plot) procedure expected, as range contains no plotting variable

First 62 63 64 65 66 67 68 Page 64 of 71