Hi.
I have a transfer function like this one:
y:=(2.5)/((8*s^2+6*s+1)*s);
and I can make inverse Laplace transformation in time and plot it by:
y1:=invlaplace(y,s,t);
plot(y1,t=0..25);
I try it also with time delay in transfer function but it doesn`t work.
y:=(2.5*exp(-1.5*s))/((8*s^2+6*s+1)*s);
> y1:=invlaplace(y,s,t);
> plot(y1,t=0..25);
So i find a solution in differential equation and make an algorithm to convert transfer function to differential equation.
ode := 8*(diff(x(t), t, t))+6*(diff(x(t), t))+x(t) = 2.5*Heaviside(t-1.5);
ics := x(0) = 0, (D(x))(0) = 0;

dcasimir

asks for an efficient way to create a list of the first n primes, without invoking

**nextprime**, etc. An easy way to do this is to use a do loop to build up a sequence term by term. However, as Alec points out, this is not an efficient technique in Maple. It runs as O(n^2), where n is the number of items in the sequence. A way to avoid the inefficiency is to forego building a sequence and instead insert the items into a table. Then, after exiting the loop, convert the table to a list.

I'm trying to solve a partial differential equation with two boundary conditions below. The general solution contains arbitrary functions of the non-differentiated variable. These functions are solved for and assigned but do not appear in the final solution return. Can anybody help me with this?

**> restart;**

**> l:=lambda;**

I'm trying to solve a partial differential equation with two boundary conditions below. The general solution contains arbitrary functions of the non-differentiated variable. These functions are solved for and assigned but do not appear in the final solution return. Can anybody help me with this?

**> restart;**

**> l:=lambda;**

It would be really nice if Maple would include PDF support in the future. More and more people are producing content directly in PDF (with pdflatex for example) rather than PS. PS isn't even directly supported on the Mac directly; it is always converted to PDF before it is displayed. Most printers can process and print a PDF file directly. Does anybody else wish Maple could produce PDF?

I was able to create a stand-alone application from a M-file with MatLab 6.0 R12. Is it possible to do the same with Maple 9.5? I mean, can I take a Maple worksheet and convert it into a executable file which can be run on a PC that does not have Maple 9.5 installed? I would like to know since it is easier for me to create GUI applications with Maple 9.5 than with MatLab.

This topic was developed in a

discussion with Mad Math.
In Maple, pattern based transforms can be done using following Subs procedure

I'm converting an expression to optimized Matlab code, and some key parentheses were left out of the final expression. Is this a known bug? I'll include the offending code below:

W1 := (-5+6*b*c*d^2+5*a*b^3*c*d+5*a*b*c^3*d+a*b*c*d+a*b^3*c^3*d-2*a*b*c*d^3-4*a*b^2*c^2*d-b^4+6*b^2+6*c^2-c^4+4*d^2-2*b^2*c^2*d^2-3*b^2*c^2+3*b^4*c^2+3*b*c+3*b^2*c^4-5*b*c^3-5*b^3*c-b^3*c^3-4*d^2*b^2-4*d^2*c^2+8*a*d-8*a*d*b^2-8*a*d*c^2)/(-2*a*b*c*d+2*b*c+2*a*d-c^2-b^2+d^2)^(7/2)/(-d+2*a);

with(CodeGeneration);

Matlab(W1,optimize);

I get a final expression of

t72 = t32 + t57 / t65 / t63 / t62 / -d + 2 * a;

December 15 2005
cjdil1 8
I am wanting to convert a whole program in maple code to fortran code, (1) How do you suggest I can do this? I have in the code: Sub routines Individual lines of code, such as plots, for loops, if statements, import/export code etc. Whole code written in 2D input math (2) The code posted before using {anames()} etc I could not get to work, though I did manage to "merge" into one huge function. But when applying fortran(functionname), Maple does not do anything.

I'm a new Maple user with an installation of Maple 10 on mac OS X. I'm trying to make system command calls so that I can convert eps files to to pdf using system("epstopdf foo.eps") This works, but Maple insists on putting the result in a popup window which I then have to manually click to close. Does anybody know how to disable this? Also, how could I get the resulting text output from a system call so that I can manipulate it in Maple. Thanks! - Mark

This is a program discribing the dynamic behavior of a N pendelum system. When I tried to comparae the result of different initial conditions, I found that every time i run it, the graph will be different.

I know that double pendelum system is a typical chaotic system, is this the reason why i have different result for each time?

Here I attach the file, but plz rename it to ***.mws file before run, b/c i wrote it in maple classic worksheet.

> restart:

interface(warnlevel=0):

with(SolveTools):with( plots ): with( plottools ):

with( DEtools ): with( PDEtools ):

g:=9.81:

x[0][2]:=0:

y[0][2]:=0:

#initialization function of each beam,in this function, we should give 3 variables, n=the number of this #beam, la=the length of this beam, ma=the mass of this beam,q=the initial angle of the beam,and qt=the initial angle velocity of the beam

beams:=proc(n,la,ma,q,qt)

global l,m,x,y,theta,icq,icqt:

icq[n]:=theta[n](0)=q:

icqt[n]:=D(theta[n])(0)=qt:

l[n]:=la: #length of beam n

m[n]:=ma: #mass of beam n

#initialize the positions of each beam

x[n][2]:=0: #the x position of the end point of each beam

y[n][2]:=0: #the x position of the end point of each beam

x[n][1]:=0: #the y position of the center point of each beam

y[n][1]:=0: #the y position of the center point of each beam

end proc;

#define the forces that applied on the end of beam n

Force:=proc(n,fm,fn)

global fx,fy:

fx[n]:=fm:

fy[n]:=fn:

end proc;

I have written a relatively large simulation in Maple10 and it is literally taking forever to run for any decent size and time. I have been trying to convert to C to run in C, which became a serious problem, then I tried to use "compile" which again was very problematic.
They seem to work only when the code is written in a C-like format anyway, in other words to use of lists and very fussy with arrays and procedures within procedures seems to create problems.
I just wanted to ask if there is something clever I can do, to convert my procedure (there are about 20 of them) and if there is certain rigorous formatting I can do without having to literary re-write my whole code, as that is the way it seems now.

I'm running Maple 10.02, Mac OS X.4.3, and Java 1.5, and when I give Maple an inverse laplace transform with a number, it returns the correct answer. But when I give it the same thing but replace the number with an arbitrary constant (i.e., I replaced 4 with k) it doesn't seem to be able to figure it out. Any suggestions on this?

**> **

I had been following a thread on comp.soft-sys.math.maple titled: Maple missing solutions?

http://groups.google.com/group/comp.soft-sys.math.maple/browse_thread/thread/0dc424e68954103e/9511b79909ecf139?hl=en#9511b79909ecf139

In, short the OP was missing solutions to a set of equations involving sin and cos.

A respondent suggested converting to exp, which seems to have worked very well in that case.

For no particular reason I decided to try this with another equation and got some

results which I cannot explain. As follows:

**> S1:=[solve(sin(x)=sin(1/x))];**