MaplePrimes Questions

Primetable :=table[(2=b,3=c)]

so far, hard code in above code

is there a generic code for general

according alphabet order 5=d,7=e etc

I want to use maple2015 to perform a Monte-Carlo simulation of a one dimensional Harmonic Oscillator.

Consider a particle having displacements, x=na where n is an integer, i.e 0 plus minus one, etc.

The potential energy of the particle is given by U(x)= 1/2 kx^2 = 1/2 ka^2 n^2.

For this simulation will choose ka^2 = 0.01 k_B T where k_B is Boltzmann's constant, and T is the temprature in Kelvin.

So we should perform a Monte-Carlo simulation starting from x(0)=20a, and perfroming individual steps by selecting an attmept to move x=+-a ,with equal probability, and choose whether to make the actual step according to energy change expected in that step.

I need to draw particle's position and x(t), and particle's energy E(t).

After that I need to calculate and draw the autocorrelation functions \phi_x(t) and \phi_E(t).

I found some code that might help me, but I am nor sure how to implement the above two lines on maple; your help is appreciated.

http://pubs.acs.org/doi/suppl/10.1021/ed100414p/suppl_file/ed100414p_si_001.pdf

 

Op(1,ifactor(12))

is 2^2

it has power

how to get 2 only

Hi, 

  I'm trying to set the display precision at the start of the worksheet and using the command

interface(displayprecision = 4):

seems to work fine. However, it seems to have no effect when I put it in the startup code instead.  Am I doing something wrong or does the startup code execute differently somehow?

Thanks

I'm studying for an exam and earlier today I was working in my Maple sheet. I saved it as usual and no .bak file was in the directory afterwards. When I now later in the day tried to open it, I got the pop up message:
"There were problems during the loading process. your worksheet may be incomplete" and half of the content is missing.

I've searched on google and tried to solve it myself, unfortunately without any luck.

I would really appreciate any help.

Best regards

Hi!

I am trying to convert expressions into functions, but the expressions have many variables x1, x2, x3.....xn.
The reason I am doing this is because I am hoping that differentiating functions in a large jacobian with large multivariable functions will go faster with functions than expressions. If it doesn't go faster then let me know.

What I am trying to do in a simplified code,

xv:=Vector(2,symbol=x):
f[1]:=x[1]+x[2];
f[2]:=x[1]-x[2];

f[1]:=unapply(f[1],[xv[1],xv[2]]);

Diff(f[1],x[1]);



                          f1:=x[1] + x[2]
                          f2:=x[1] - x[2]
f1:=(x_1, x_2) -> x_1 + x_2
                            d        
                          ------ f[1]
                           dx[1]     

 

 

How can I get this to work? And is it worth it?

Hi everybody,

I use a maplet that contains a DropDownBox named DDB.
This DropDownBox has a list named MyList
I want to replace MyList by a new list named MyNewList

The syntax given in the Maplets[DropDownBox] help page is
Maplets :-Tools :-Set(DDB(itemlist)=MyNewList)

This command returns the error
error in Set, invalid option for  ‘DDB(itemlist)’  ….

Is it a bug or some misuse (in the help page the “itemlist” option is written itemlist* : what is the meaning of this “*” ?)

As always any answer will be greatly appreciated.

I produce a list of permutations with "permute".

For each produced permutation, I want to have its sign (1 for even, -1 for odd).

Is there a command for that? 

Dear all,

 

I am trying to solve this inequality:

0 < 2*b^2*(10*K*a+3*K*b-sqrt((K+(2*K*a+1)/b)^2-4*K/b)*b+5)

for a.

However, I get to the error below:

Error, (in testeq) invalid arguments
does anyone know which mistake I am making?!!

what is this testeq?!

Pls how can I label my vertical axis in such a way that the label will be written vertically e.g "proportions of Susceptible"

If I pass "a := x + y;"

as a string

can it turn to command?

if so, can it export this feature into c# or python?

Hi all,

I am trying to have the following display correctly....

ans1:=7/9;

ans2:=1/4;

XMLTools[Print](MathML[Export](ans1;ans2);  THIS IS THE PROBLEM LINE:  I know why this is a problem but need a work around.

Essentially I would like to display:  ans1 ; ans2,  i.e with a semicolon between the two answers.

Hi everybody,

I am used to using  the DocumentTools :-RunWorksheet command and I am confronted with the following problem :

  • My worksheet is deemed to generate a plot in a png file
    > plotsetup(png, plotoutput=MyFile, …)
    > plot( …)

    But MyFile is not created
     
  • Thinking that the mw file launched by  DocumentTools :-RunWorksheet is seen as a procedure, I have thought that print(plot(…)) would fix the issue.
    Unfortunately the png file is still not created (same behavior with a jpeg file)

I know that  DocumentTools :-RunWorksheet is “experimental” but I wonder if I am doing something wrong or if DocumentTools :-RunWorksheet simply does not support plots ?

Thanks in advance

Fix_integrations.mw

Could you any one help me to fix this application and find the result for integrations?

 

Many thank,

I wrote some procedures in an older version of Maple to sort through a matrix and find repeated elements, and then set the matrix elements equal to one another. As an example, consider the matrix:

Matrix(4, 4, {(1, 1) = 31774769/38880000, (1, 2) = -90858559/233280000, (1, 3) = -76547233/69984000, (1, 4) = -119275567/139968000, (2, 1) = -90858559/233280000, (2, 2) = 1506841/6480000, (2, 3) = 442249/720000, (2, 4) = 85514221/116640000, (3, 1) = -76547233/69984000, (3, 2) = 442249/720000, (3, 3) = 592249771/349920000, (3, 4) = 121562339/87480000, (4, 1) = -119275567/139968000, (4, 2) = 85514221/116640000, (4, 3) = 121562339/87480000, (4, 4) = 170546323/87480000}, datatype = anything, storage = rectangular, order = Fortran_order, shape = [])
Due to its symmetric nature the upper triangular matrix is just the same as the lower triangular. i.e. the elements are equal: (2,1)=(1,2), (3,1)=(1,3) etc...

I have attached a minimal working example Maple script, which processes an input matrix, finds repeats and sets the elements equal to one another (e.g. [1,2]=[2,1], literally printing this) and saves the output to a file using a specific format for processing by another program. The matrix in the file is numeric but the actual matrices contain a lot of algebraic terms and can get quite large. This is where my procedures struggle as they take a very, very long time to process larger algebraic matrices to group the repeats. Is there a more Maple friendly way of going about this problem rather than these "archaic" procedures?

Here is the script:

duplicates_matrix_.mw

Thank you in advance

-Yeti

First 692 693 694 695 696 697 698 Last Page 694 of 2141