Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Using the Physics package I am trying to define commutation rules between operators. However it looks like when the commutator involves a Dagger, it is not "remembered" properly. Here is a (contrived) example (you might have to run it on your machine in case not clear from copy/paste what's going on):


restart:
with(Physics):

Setup(quantumoperators={a, b, c});
                ...

I've received a suggestion offline saying that I should animate the Pacman. There are two items to animate: Pacman's mouth and pac-dots. To review how pacman's mouth moves, please have a quick look at Google Pacman doodle.

Pacman's mouth only has three stages: open, half open and close. Let's take the pacman that I created in the previous post. Each frame of the animation is done by adjusting the radian values of the "pie" (aka Pacman's body and mouth).

This describes in more detail (with permission and citation) the method posted here of solving problem 2 in the XKCD comic Substitute.

 

Download RaptorMath.mw

 

Today is my birthday, and in fact it is also the birthday of at least one other Maplesoft employee (not surprising since more than 23 people work here - considering the generalized birthday problem, I even know of 3 people here who share the same birthday).  Of course, it turns out that birthdays are not evenly distributed through out the year and so I wanted to know if someone with an August birthday is more likely to share than someone with an April birthday. 

I would like to include the current date in the filename when I use writedata.  How can I do that?

I know this doesn't work but I was trying to do something like this

  test:=[1,2,3,4,5,6]
  writedata("c:/data-FomatTime(%B%d%H%M).txt",test)

 

Look at this article (Its loading can take a few minutes: approximately 5 MB.). All those pictures could be created with Maple.

PS. Working link to  the article.

Motion_of_a_Charged_.mw

Hi,

The procedure I uploaded, was originally written in C++. I made a text file and plot the file with C++ without any problem.

But in the maple version of the same program, when I use the command:

                          ...

I am using Maple to generate PDEs. I have expressions of the form p(dx,dy,dz, etc.) where p is a nonlinear polynomial. I would like to substitute d/dx for dx etc and then later apply the resulting differential equation to a function. I am having multiple problems with this.

1. Maple seems to be unable to handle a derivative unless there is a function for the derivative to act on. (This is not a huge issue, but it would be helpful.)

2. Even if I do specify a function Maple maps dx^3 to diff(f,x...

I would like to know how to plot different series of data on the same graph.

 

Thanks in Advance

Hello,

I have a grafic, a power curve, and a few values of the curve.

The values are in 0.5 steps. I would like to calculate the values for all the 0.1 steps.

For example:


I know the values for 4, 4.5, 5 etc. and would like to find out the values for 4.1, 4.2, 4.3 etc.

 

Is this possible using Maple?

 

Best regards,

Calin

When I plot csc(k*x) for various values of k, the timing varies considerably depending on the value of k.

Here are the timings for k = 1..5 (note the strange case of k = 3):

  seq(time(plot(csc(k*x), x = 0 .. 2*Pi, -3 .. 3, discont = true)), k = 1 .. 5);
               0.031, 0.031, 14.133, 0.046, 0.062

For k = 6, the time is apalling:

Just for fun, I've created a Pac-Man using Maple's plot command:

body := plottools[pieslice]([0, 0], 5, (1/6)*Pi .. 11*Pi*(1/6), color = yellow):
eye := plottools[pieslice]([-1, 2], .5, 0 .. 2*Pi, color = black, filled = true):
plots[display](eye, body, axes = none);

The hairpiece for Ms. Pac-Man can be added easily:

Continuing on in this series of posts, here is a way to test the randomness of a sequence of bits from a PRNG that is the appropriate to the first morning back after the August long weekend.  It is a very fast, and not very formal test done by checking how well a sequence compresses. This is really easy in Maple 14, with the new commands ?StringTools:-Compress and StringTools:-Uncompress which use ...

I was wondering if anyone has any experience with conic optimization (ie Mosek)
to solve large scale portfolio optimization problems. It all seem so complicated.
It should be possible to call such an optimization engine from Maple right?!

Hi

I'm looking for this application : "A Double Pendulum Model using DynaFlexPro and Maple"

Does anyone have it ?
Indeed,it's no more on this site : http://www.maplesoft.com/applications/view.aspx?SID=1682
I really need to make a simulation of the motion of a double pendulum, using Maple.
First 1784 1785 1786 1787 1788 1789 1790 Last Page 1786 of 2224