Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

i want learn programming with maple

would you help me with lecture notes 

thanks

I get a strange error: I'm calling a procedure f( L1 , L2 ) which expects two lists L1, L2 as parameters such that each entry of L1 and L2 is of type 'rational'.

This procedure is called several times but from time to time this error occurs:

"Error, (in  ....[f]) invalid input: ....[f] expects its 1st argument, L1, to be of type ......, but received [0., 1, 0]"

Does Maple do some kind of auto-conversion of e.g. L1=[0,1, 9999999 / 10000000] to the corresponding float?

Sorry for posting something similar again on computing on multi-core-machines but it's really important.

So the question is:

There are two possibilities for solving a problem:

(a):
f := proc(L::list)

r1 := g( first part of L );
r2 := g( second part of L );

return [ op( r1 ) ,op( r2 )]:
end proc:

(b):

How can I write a Maple program (using if..else) to find the first positive integer n (between 1 and 355)such that 355 can divide n*m (m is an integer, say 199) ? Thanks for your help. 

Dear experts, I know how to give the plot a tite (title=....) but not how to give each curve a name. And furthermore not, how to give the x-achsis and the y-achsis a name. Thank you a lot!!!!!!!!!!

Hello

I have 2 equation and want to solve them using the initial conditions

How can I randomly select a number from a user defined list. 

The command seq can recognize user defined lists: seq(i^2,i=[1,5,10,25]) and so I also thought the rand command could work somewhat similar

I tried to get   rand([L])()  to work where L is my list, unfortunately it turns up an error since it must be a pos int.  

 

Dear experts, 1. last question: My Matrix M:=Matrix(10,2,[]) has 10 values containing the results f(x) and the second 10 values containing the x values. Now my question is how can I plot these values so f(x) on the y achses and x on the x aches. 2.And: I have a second matrix of the same size and want to plot it into the same graph. How could I do that? Thank you very much in advance !!!!!!
Dear experts, I have calculated a matrix M1 and now I wanted to click the right bottum of my mouse to select "browse" and the export it to excel. Unfortunately I did not find browse. Where did I do a mistake?
Dear experts, I have a matrix with 20 values called M. What do I have to write that maple gives me all 20 values in the result. I mean that Maple shows all 20 values?

Hi there,

it might sound stupid but I wasn't able to program a procedure with

1. peding number of parameters: e.g.

f := proc(a1,a2,...)
....
end proc:

should be good for both f(1,2) as well as f(1,2,3,4,20) and so on.

2. I also wasn't able to program a procedure with an optional parameter:

f := proc(a, opt)
...
end proc:

should be good for f(1) as well as for f(a,"h") etc.

 

I'm working with lengthy computations in Maple right now and I was just wondering whether it it possible to display some kind of "progress bar" after you hit the return button to start the computation.

At least in the form that text is displayed (e.g. "now is a good time to drink your coffee, computation may take a while") BUT that vanishes after the computation is complete.

Hi there,

I try to plot several graphics and print them out as follows:

for i from 1 to n do
  p:=polygonplot(...):
  disply(p);
end for:

but nothing is being diplayed. Doing that just once does the job but I need those plots for large n...

Long story short, running a loop that takes random variables and does various statistical things to them.

The loop has to run about 10^7 times with the final value going into an Array but I cant do that because the Statistical stuff such as CumulativeDistributionFunction takes up so much memory that I end up losing the kernel.

But... Today I came across the gc() command. I put this in at the end of my loop (before the end do), and lo and behold I was using virtually zero memory for the loop. Only what was needed to fill an Array.

 

So Maple and I are not the greatest friends and I need help. I have searched google, this forum and other forums for help to no avail. If somebody would be so kind as to help me with the problems that I am having that would be greatly appreciated.

I think the problems are in the initial and boundary conditions because there are so many recursive statements but I am unsure how to enter these so that I get a favourable result. Without the boundary and initial conditions I do get a general solution.

First 1880 1881 1882 1883 1884 1885 1886 Last Page 1882 of 2191