MaplePrimes Questions

Dear Maple users

In a short Maple program I am dealing with a collection of random samples from a uniform distribution. My problem is that every time I call a procedure creating a sample, I get the exact same one! Every run needs a different seed. How do I get a new 'random' sample? I could probably let Maple create all from scratch calling the Sample command with a two-dimensional range, but this will requre a big memory ...

 

Here is part of my code:

f

1 2 3 4

3 2 4 1

g

1 2 3 4

2 4 3 1
f := permgroup(4, {[[1, 3, 4]], [[2]]});

g := permgroup(4, {[[1, 2, 4]], [[3]]});

mulperms(f,g);
Error, (in permgroup) generators must represent products of disjoint cycles, but [2] does notError, (in permgroup) generators must represent products of disjoint cycles, but [3] does notError, (in convert/plist) bad index into Array

Hello. I am interested in displaying the content of data structures, which has me using the command interface, to instruct for a wider visibility of these.

However, when I typer and execute the command, it simply does not take effect at the first execution, but it requires for me to re-execute it, in order for it to actually display the proper result.

Any explanation for this? To be more specific, this is what I want to instruct:

Hi, 

     I'm computing some difficult integrals, involving Spherical Harmonics. I've proved that the answer must be a real number, and yet Maple returns a complex number. Also Mathematica returns purely real numbers, so I wonder if there is a bug in Maple. I found if I break the integrand into real and imaginary parts, and add them I get the right answer...usually.  Anyway's here's the code and the proof, I suspect they could be a bug...

Dear all

i am writing some differential equations with Maple. I'd like now to generate the Matlab code and let them run. Unfortunately I need the closed form but Maple does not distinguish (at first sight, of course) between time functions and parameters. But what in Maple is a time function, will be an array in Matlab. Unfortunately in Matlab environment the array product is carried out by the meaning of the element-by-element command: ".* " .

Using CodeGeneration[Matlab...

Hi, I have read the help files, and many posts in MaplePrime. However, I am struggling to understand how to properly extract a number from a list. I would like to extract only the positive, or the maximum solution of a quadratic expression.I have uploaded the .mw file. (1) (2) (3) (4) With no brackets around A it does no work, Error, incorrect number of extra arguments in select If I extract the positive value I get a list, (5...

Maple -u enters an edit mode upon detecting a syntax error. It displays the offending input with a cursor on the character where the error was identified. You can insert text before the cursor. But what else can you do? How can you change the marked character? How can you get out of edit mode? I have been unable to find anything about editing in either the user manual or online help. So I need an editing primer or a pointer to one.

@acer My question is about highly oscillatory integral.I wanna integrate 
int(int(f(x,y)*exp(i*w*g(x,y),y=0..1),x=0..1)) which is higly oscillatory integral in a triangle with vertices  (0,0),(1,0),(1,1) and with g(x,y)=x^2+y^2. Since g(x,y) has stationary  point at (0,0), I have to interpolate f(x,y) except (0,0) but also quite close to (0,0). The problem is that since...

Good day, Is it possible to plot multiple (more than two) functions with 'dualaxisplot'?I've found some information about it on the Internet, which helped me out a lot, but I still don't know how to put in multiple functions in one dualaxisplot.For example I would like to plot a figure which consists of four functions, all of them having their own domain(!).Three of them are related to the 'left' y-axis, and the fourth function is related to the 'right' y-axis.Comment: I wanted to insert the formula over here, which I use to plot the dualaxisplot, but the 'dualaxisplot-command' isn't working ("You have entered an invalid Maple plot command").So for example, I do know how it works with two formulas, like:dualaxisplot(plot(2x,view=[0..10,0..20],labels=[x,left=2x],legend=2x),plot(x^2,view=[0..10,0..100],labels=[x,right=x^2],legend=x^2,color=blue)); Now I can independently change the left and right y-axis like I want to. Now I would like to have the shape of the next graph:The trhee formulas which belong together, and that I want to relate to the left axis (making one line), consist of: horziontal line, linear line, horizontal lineThe other line I want to relate to the right y-axis, which is a linear line. So I can write the four functions for example like:restart;with(plots):eq1:=50,x=0..3:eq2:=(50/(5-3))*(5-x),x=3..5:eq3:=0,x=5..10:eq4:=10x,x=0..10: I thought I could 'join' the (first) three functions by using the '{' and '}' symbols, but that isn't working either. Somebody has a suggestion?Or that it just isn't possible at all.... Thanks anyway for thinking along. Greetings, Frank   

How to use maple to compute the intersection of two permutation group

Hi,

I have a matlab file and i want to use this one in Maple.

Is there a way to convert a m.file to a maple file?

The matlab code is this:

%Parameter values
lambda=0.00755834; %Sheath loss factor
Re = 26.5 %Outer cable radius [mm]
Delta = 5.9E-7 %Thermal diffusivity of soil[m^2/s]
alfa = 0.00403 %Temp coefficient of conductor material [K^-1]
R20 = 0.321 %AC resistivity of conductor material at 20 °C [Ohm/m]
RHOs = 0.8 %Thermal resistivity of soil [Km/W]

Hi every body

I want to solve a differential equation y'(t) = sqrt((f-1)/(t^f-t)) and get an answer in terms of ordinary function.is it possible. thanks 

Hi there,

In the attached PDF I have a system of 16 equations with 16 unknowns (the unknowns are a_i, b_i, c_i, d_i for all i = 1..4). The x_{ijkl} represent known (arbitrary) values. 

Can someone solve this system and tell me what the solutions are? If there is more than one solution, then I only want one solution. 

 

Thanks!

Qn.pdf

hello, i'm using maple, in order to draw a graphic in wich, different functions are plotted, 
these functions came from one with 4 variables, wich represents losses in a phenomenon (extraction) depending on diffenrent variables, so my objective is to varry only one parameter and then draw its curve, and this for each parameter ; i had 4 functions.

with(plots):

f1:=plot((n-1)/(-1+n*10^(6.77*((n-1)/n))), n=1.0537..1.2688):

f2:=plot(0.2365/(-1+1.2365*10^(0.0155*O)), O=76.42..99.92):...

I want to create a package.  I want to be able to load it using the usual with(Accellib); construct.

how can i do it?

First 1566 1567 1568 1569 1570 1571 1572 Last Page 1568 of 2427