## ... use codegen without redundency in the code out...

We use maple to generate all of our computational bits, dump this out to header files, and include this in our code base. A lot of the code that is generated is redundant so it would be nice to have codegen[C] know, or at least be able to be told, to optimize the entire code being dumped to the same header file. Is this possible? Examples follow... " ..... DCb := array(1..3): lp:='lp':ip:='ip':m:='m':ap:='ap':jp:='jp':a:='a':l:='l':j:='j':i:='i':k:='k':kp:='kp': for ip from 1 to 3 do DCb[ip] := sum(sum(sum(sum(sum(gd[ip,jp]*gu[ap,lp]*jacu[m,lp]*jacu[a,ap]*dJ[jp,m,a],m=1..3),jp=1..3),lp=1..3),ap=1..3),a=1..3):

## i am looking for freelance Maple 10 developers /pr...

Our's is a large I.T training organisation we are looking for I.T Professionals who can create worksheets through Maple 10.Familiarity with the mathematics module will be an added advantage.
The requirement is quite urgent if anyone interested or knows anyone who is interested please contact ASAP.

## First Order Logic...

I have a problem with a sentence that I have. I don't know whether it is a formatting problem or problem with the statement itself. I'm trying to say something like this (if it makes it less abstract, I'm trying to formally define a Sudoku puzzle). For any set S and function F that maps the ordinal set |S|^2 to |S|, there exists a set T which is a subset of S^|S||S||S| such that any element of T Tabc is equal to the empty set iff c !=F(a,b) First of all, theres a couple issues with this. |S| is the cardinal of S, but for convenience I also use it as an ordinal set. Second, as I started typing this I saw that I do not have the necessary statement for all Tabc which are members of T. How can I correctly input this statement into Maple?

## Program using Statistics, Sample...

Hello,

Please help my with my program. First, I'll post the relevant code, then the questions:

--------------------------------------------------------------------------------------

with(Statistics); with(LinearAlgebra);

#k is a Vector everywhere in this program
ModeFreq := (k, m)->Norm(<Norm(k, 2), m>, 2);
OscillatorAmplitude :=(n, k, m, x) -> (ModeFreq(k, m)/Pi)^(1/4)*exp(-1/2*x^2*ModeFreq(k, m))*HermiteH(n, x*sqrt(ModeFreq(k, m)))/sqrt(2^n*factorial(n));
DeltaApproxAmplitude :=(x0, N, k, m, x) -> evalf(expand((sum(OscillatorAmplitude(n, k, m, x)*OscillatorAmplitude(n, k, m, x0), n = 1 .. N))/sqrt(sum(OscillatorAmplitude(n, k, m, x0)^2, n = 1 .. N))));

## Working with Maplet Builder...

I am trying to familiarize myself with the functionality of the Maplet Builder, and I'm having some frustrating problems. Whenever I set a button to change the value of a MathML viewer, for the command, I use the statement MathML[Export](insert Maple statement here), and I receive an argument error. In addition, I was wondering if (while using the builder) there was a way to add some code that evaluates one or more Maple statements (i.e., variable definitions to be used by multiple Maplet components,etc.) that does not affect the value of any of the component properties. I'm used to using the GUI components in worksheet mode which seem to be more flexible in terms of programming actions for components (perhaps only because of my ignorance pertaining to the Maplet builder).

## Having a bit of trouble integrating this one...

Hi guys, I am trying to integrate the following expression: u_ratio:=(4/omega_star)*(sin(omega*t)-(exp(-B)/sqrt(r_star))*sin(omega*t-B)); where omega_star:=omega*r0^2/nu; r_star:=r/r0; B:=(1-r_star)*(sqrt(omega_star/2)); I would like to obtain integral of u_ratio with respect to r_star, and separately the integral of u_ratio over one period. When i try to use something like int(u_ratio,r_star) in only get back a large expression with an integral symbol still in it. What would be the best way to approach integrating this guy? Thanks, Randy

## How to coding such kind of function (Convolution)?...

Hi all: I want to realize the following function in maple: 1> According to the input vector, n, canculate the n times of auto-convolutions, after getting the final result, measuring the vector according to each element of the result. If I use the math language, Suppose I have vector, called A the length of vector is L; Result = A*A*....A (n times convolution); Measure= Sum (on i) (Result[i]*ln(Result[i]); I donot know how to coding like that Thanks for any help. How to read the parameters from keyboard in maple? Thanks bin

## Maplets -...

Hello, I've got the following problem: I want to build a Maplet with the Maplet Builder. This Maplet shall contain a plot, a slider and a textfield. After moving the slider, the plot shall change and at the same time the textfield shall show the value of the slider. Is it possible to assign two conjunctions to the slider at the 'onchange' field? Thanks for helping, Frauke

## Define function with matrix perhaps?...

I'd like to define a function f(a,b)= product(product(p(a,b,c[i],d[j])^x[ij]*(1-p(a,b,c[i],d[j]))^(1-x[ij]),j=1..n),i=1..n) (The x's are known data, each 0 or 1, the c's and d's are also known.) Is there a way to do this without writing it out long-hand, say using a matrix of the x's and vectors of the c's and d's? Thanks.

## Classic Worksheet Mouse sensitivity problems...

Hello All!
When using Maple 10 Classic Worksheet, the mouse sensitivity goes up tremendously, making it really annoying to work with. The sensitivity is only increased in the Maple window when it's activated. I only have this problem with Classic Worksheet, but it's the 'version' I use. Is there any workaround for this? Like some sort of registry fix?
I'm using a Logitech Mx500, by the way.
Any help is really appreciated!
Cheers

Thanks

## question about fractional form / evaluating cfrac ...

Where can I find a description for the various variants of numtheory:-cfrac, which goes more into details than the online help? For example one can guess how an approximating sum can be obtained from numtheory:-cfrac((a+x)^k, x, 7, 'diag', 'simregular', 'quotients'); but I prefer to cross-check against a confirmed formula instead of guessing. If somebody would be so kind to point me to some source to look at ... or even knows it already ...: how does one evaluate the above list to get a value? -- edited to add: I mean a way which can be compiled and without running through

3 equations are: diff(u_r(r,theta),r)+2/r*u_r(r,theta)+1/r*diff(u_theta(r,theta),theta)+cos(theta)/sin(theta)/r*u_theta(r,theta)=0; -diff(p(r,theta),r)+mu*(diff(u_r(r,theta),r,r)+2/r*diff(u_r(r,theta),r)-2/r^2*u_r(r,theta)+1/r^2*diff(u_r(r,theta),theta,theta)+cos(theta)/sin(theta)/r^2*diff(u_r(r,theta),theta)-2/r^2*diff(u_theta(r,theta),theta)-2*cos(theta)/sin(theta)/r^2*u_theta(r,theta))=0; -1/r*diff(p(r,theta),theta)+mu*(diff(u_theta(r,theta),r,r)+2/r*diff(u_theta(r,theta),r)-1/(r^2*sin(theta)^2)*u_theta(r,theta)+1/r^2*diff(u_theta(r,theta),theta,theta)+cos(theta)/sin(theta)/r^2*diff(u_theta(r,theta),theta)+2/r^2*diff(u_r(r,theta),theta))=0;

## Is this a bug in Matlab code generation?...

Seems that Maple outputs ".." instead of ":" for Matlab code. Note that I'm using Matlab 6.5, so not sure if version has anything to do with it. Is this a bug? Any help would be greatly appreciated. Thanks. >Matlab Code generated from Maple follows

## Having problem with infinite series...

I tried Maple to find a closed-form expression of the following infinite
series:
F:=sum(r^j/(1-a*z^j),j=1..infinity)
where r and a are probabilities and |z|<1.
It did not work
Then I tried to get a series expansion of F around z=0, i.e:
G:=series(F,z=0);
Got the following error message:
Error, (in series/exp) unable to compute series
However when the upper limit of the summation is changed from infinity to any pre-defined number;
ex: F:=sum(r^j/(1-a*z^j),j=1..100)
Maple was able to derive the series expansion around z=0.
Is there any way to get the series expansion at z=0, when the upper limit of the summation is infinity ?
 First 333 334 335 336 337 338 339 Page 335 of 339
﻿