## Parallel Code with OpenMaple...

Hello all, I am about to write a simulation which is remarkably redundant and suits itself quite well to parallelization on my multi-core, shared memory machine. Also, I am new to OpenMaple. How does OpenMaple behave in parallelized situations? Is it possible to have multiple threads with independent Maple kernels? Could multiple threads coded with OpenMP or the fork command find uncorrupted solutions? Thank you for any help you may offer! -asn

## Differential Operator...

I want to define the operator L(g):=(phi*D)(g), which to be understood L(g)(x):=phi(x)*g'(x), phi is a fixed smooth function. One solution would be to write a procedure, but I would like a more elegant method. How can I do it?

## C codegen questions, errors, warnings and others...

Hi all, I am having lots of trouble using C codegen in generating C code from Maple expressions. My questions are: 1. How to assume each element of a whole array or vector >0? Of course I can do: Assume (a[1]>0, a[2]>0, a[3]>0)... But I have "m" elements, how can I do that for all m elements? 2. What to do if the output says "the output length exceeds maximum limit of 1000000"? This occurred when I tried to "simplify" some complicated expression... obviously Maple did get some results, but it refused to print them out due to length limit, ... 3. There is no way to translate the result of "JJ16:=optimize(JJ15, 'tryhard')"?

## How differentiate and integrate a function of arra...

I have a function of array x[n]: f.e. f:= x[1] + x[1]*x[2] + x[1]*x[2]*x[3]. How to compute a derivative with respect to x[1],x[2],x[3] ? diff(f,x[1]) returns 0. Another question: I need to evaluate n- multidimensional integral: int... ( int( int(f,x[1]=0..1) , x[2]=0..1, ..... , x[n]=0..1 ). How shall I write ?

## Fitting a distribution to censored categorical dat...

I have a rather complex statistical problem and was wondering if Maple would be able help. For my Oxford University thesis I have conducted a survey which seeks to estimate respondents' values for a certain preference parameter (relative risk aversion, RRA). This parameter is continous, but my data is categorical, i.e. the parameter value of each respondent is only estimated as a range. There are eight such categories. What makes it more complex still, is that the data is censored. The lowest category has no lower limit, and the highest category has no upper limit. The actual categories are as follows:

## Exporting dxf files to TurboCad...

Has anyone tried to export a 3D plot from Maple 10 to TurboCad 10.5 or 11.2? When I try this, the dxf file is produced, but when I open it in TurboCad, only a blank drawing is produced. Am I missing something? Don Ritchie

## Plotting an Equation with Recurrsive Components...

I'm faced with the problem of trying to plot a graph of the form, for values of b against a. a^2:= (b^2*c^2) + (a*d^2)/(a-e^2); Unfortunately, when I try and enter the above, Maple gives an error and tells me when that the equation is recurrsive. If I re-arrange the equation and then try and get an equation with a purely on one side, using the isolate command, Maple cannot isolate a. The re-arranged equation is of the from a^2 - a*e + (b^2*c^2*e)/a - d^2 - b^2*c^2 = 0; Perhaps I have re-arranged the equation incorrectly.

## Math code generation in C/C++? Can Maple or Matlab...

Hi all, I am asking this for my engineering friend. We've posted on Maple newsgroup and we just heard that here is another place where Maple experts appear, so we posted it again here to seek more advice -- because we have a struggling problem which annoyed us for several days already! Thank you! ---------------- Here is what I want to compute: t22 := Re((1/2*(a^2+2*sigma2*(c+g*(ee+i*v)))^(1/2)*exp(.5*a*t)/ (1/2*(a^2+2*sigma2*(c+g*(ee+i*v)))^(1/2)*cosh(1/2*(a^2+2*sigma2*(c +g*(ee+i*v)))^(1/2)*t)+.5*a*sinh(1/2*(a^2+2*sigma2*(c+g*(ee +i*v)))^(1/2)*t)))^(2*a*xbar/sigma2)) Assuming all variables are real and positive...

## How do I find the Real and Imaginary parts of the ...

Let's say you want to compute Re(Gamma(a+b*I)) where a and b are real. Is there a way to obtain a good form of the real part and imaginary part?

## How do I generate complex images?...

Hi, I need help!. I'm plotting 3d Strange Attractors(a complex dinamical system), in order to get an acceptable result I need to create about 500,000 points in a third dimentional plot, the problem is that it takes a long time to generate(sometimes hours and even days), so... Here is an Strange Attractor with only 2000 points took 20 seconds. ¿What can I do to generate such plots in a reasonable time? ¿Is there a way to comunicate Maple with OpenGl(or other fast graphical engine)? Suggestion are welcome! Thanks.

## Compressed Worksheets and License Files...

I recently purchased a Maple e-book, and I noticed a few lovely features of which I would like to take advantage. The first is the ability to create a compressed worksheet. There seems to be a painfully simple mechanism behind compressing and uncompressing the worksheet, since when the worksheet is opened with a text editor, the first characters are (if I recall correctly) "<compressedworksheet". I cannot find any documentation inside of Maple detailing the compression and uncompression of files. Thus, I ask you, Maplesoft: How can I compress my worksheet files in this manner? The second feature of which I would like to take advantage is the use of a license file. Looking at the XML code of the compressed worksheet, it seems that one only needs to make reference to the location of a license file in order for Maple to look for the license file. The license file itself is very short--only about 4 lines--which makes me assume that the license file checking mechanism is similarly simple. Again, Maplesoft: How can I make and use my own .dat "license" files?

## Set multiple lines of a MathContainer component...

I'm trying to create an interactive tutorial for students. Let's say, for the sake of example, that I want to show step by step how to complete the square. First, the user enters an expression into a text field or math container. Then, when the user clicks a button, Maple takes the expression and outputs multiple lines detailing the steps in completing the square. Preferably, all of these steps would be shown in the same math container. I can find no easy and direct way of setting the value of a math container to have multiple lines of math. I'm continuing to search, but does anyone know of a way?