Christopher2222

5785 Reputation

24 Badges

16 years, 348 days

MaplePrimes Activity


These are answers submitted by Christopher2222

taskkill didn't do anything for me in Win XP.  Maybe that's only for Windows 7?

tskill works in xp but only partially and seems to have a more limited use.  If you know the process id number PID you can stop the process but that only has an effect of kernel connect loss.  On top of that you need to know the number and it's not clear on the windows task manager which mserver is associated with which window you want. 

system("tskill maple");  #completely closes maple

system("tskill notepad")  #closed all notepad files

I tried to close a single notepad window in hopes to find out how to close one maple window
system("tskill /id:test3.txt - Notepad")  # but this closed all notepad windows including the test2.txt and test1.txt I had open anyway

system("tskill mserver"); only kills the current session kernal connection but not the window

BTW a roundabout might work if one could programmatically open into a new maple worksheet and programmatically close the one you just left.  However I have no idea how to do this.

If a is your Matrix you can select a single row, the third in this case, using a[3,..]

With a little modification to that, you can write your own little "RemoveRow (rr)" procedure to delete the row of a Matrix.

rr:=proc(a::Matrix,n)
  a[[1..n-1,n+1..op(a)[1]],..]
end proc:

rr(c,5) #removes the 5th row of the Matrix c

 



My initial attempt to the steady state solution to the heat distribution using a piecewise boundary condition for the given example.  It appears Maple produced some unwanted waves at the piecewise boundary.

 

 

Compared to a view in the slide presentation I saw

 

 

A possible modification to the maple code to partially achieve what was obtained by the software used in the slide presentation.  Not the most direct approach nor I believe too accurate but the point was to achieve what the presenter of the slide show displayed.

 



Download heat_equation_modell.mw

There are still slight waves in the soltuion but it is much better than the first.  I'm not sure it is the right way to go about it but for steady state solutions it is probably okay.

Now if I also wanted to include modelling the air temperature at a distance around the rod how do I go about that?

I'd be interested in seeing what the original poster (op) came up with or even some starting pde's to work with.  It is an interesting problem.  For me, out of the field for a long while such problems aren't so easy anymore. 

@Samir - your maplesoft blog deals with ode's.   For your countercurrent double pipe heat exchanger I can't figure out how you arrived at the starting pde's I've actually been scouring the web to remember my applied maths in thermodynamics.  I don't actually remember specifically doing any heat balance equations, but I don't think it's any different than summing the total energies of various parts in the system.

The O.P. has probably moved on by now but any other help would be appreciated. 

Seems I have stumbled on a quick solution.  I could encompass.

interface(typesetting=standard):
...
interface(typesetting=extended):

for the lines I wish to change.

 

For a steady state condition our heat transfer would just be H=-k*A(dT/dx) for a simple case, but when the flow stops can we also use Newton's law of cooling which says T(t) = Ts + (To - Ts)e-kt  where Ts is surrounding temp and To is initial temp?

I would suggest assigning a variable to the seperate pointplots and using display to join them all together

ie if your BF# is in the form of [[x1,y1,z1],[x2,y2,z2],...,[xn,yn,zn]] then you could just do the following

a:=pointplot3d(BF1,style=line)
b:=pointplot3d(BF2,style=line)
:
:
etc...

display(a,b,c,d,e,f)

This would take care of the 30 to 0 lines being drawn in.  At the moment I don't see another way to interupt the line being drawn between the different values of z's in a single plot argument.

 

So it sounds like you want to rescale the axes or something.  Can you provide a little more info?  Do you have data?  Was it created with Maple, or is that just an image you want to extract values from?

Not really exactly sure what you're asking for here.  If you have Maple 14 or above you can use the point probe to examine the values from your maple graph.  You can zoom in and get a rough idea of the values. 

Your graph on the right looks like you used scaling=constrained.  But it sounds like you want to examine the graphic which has no numerical values? 

Can you be a little more specific?

 

Not that it matters at all, but did you acquire the badge after your posted question? 

I really don't see the benefits or advantages of knowing who has what badge anyways.  All one is really concerned about is if they can get their questions answered or posts commented on. 

There is no quick converter to convert your files to newer code.  You will have to rewrite them. 

You almost had it Peter.  But building a list inside a loop is the worst way, however you can do it.
In order to fix your code the way you started with the minimal changes

h:=[]
for i from 1 to 10 do
  h:=[2*i,op(h)]:
end do:

Of course building an Array is the most optimal way for large datasets if the number of datasets is known, followed by building a table() for the next most efficient way when number of datasets is unknown followed by building the list outside the loop in a seq.  And of course dead last, building a list inside a loop.

 

Here is one way

X:=mydata[..,1];
Y:=mydata[..,2];

g:=sort(mydata,(X,Y) -> evalb(X[1]<Y[1] ) );

with(plots):
regression:=Statistics[PolynomialFit](2,X,Y,x);
graph1:=pointplot(g):
graph2:=plot(regression,numpoints=500):
display(graph1,graph2,view=[0..1,0..1]);


 

Sounds like the finance.dll is missing.  Did it install okay?

Post what you did that caused the problem. 

Does anything work from the finance package?

evalf(10.0/50.0, 2);
                                       0.20

 

First 28 29 30 31 32 33 34 Last Page 30 of 47