Christopher2222

MaplePrimes Activity


These are answers submitted by Christopher2222

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

 

Yes single backslashes are ignored because as Pagan says it is an escape character.  Cryptography perhaps?  Makes things a little bit more difficult. 

The bmp was the 1month graph from the Hamiltongasprices.com site.  After shutting down, taking a break, coming back and reloading the worksheet I am unable to reproduce my error.  The error must have come from something in the worksheet that was cleaned out when I shut down. 

For my 1st half second question, I don't want this thread to be a complete loss, again it is related to an ImageTools error. 

After using Threshold on an image to make it a black and white image as I did above
with(ImageTools):
a:=ToGrayscale(Read("f:/example.bmp")):
b:=Threshold(a,0.9):
Write("f:/test.bmp",b)

Okay, no problem, now when I view the image it isn't completely black and white when I zoom in.  The black squares have a slight shade of white ( I thought it was because the values in the Array were float8's) so I did this to my Array...

d:=map(round,b) # change the floats into definite integers
Write("f:/test2.bmp",d)
Error, invalid input:  ImageTools:-Write expects its 2nd argument, image to be of type Image, but received Array(1..    ...etc

I did this because I wanted to see if the written image was affected by the float datatype, unfortunately it didn't write.  How do I change my d Array into an Array that can be written into an image? 


The reverse engineering is the interesting part.  What I want to do here is use Maple to approximate the positions of the values where the average gas price is each day from the same site Hamiltongasprices.com or of something similar.  Of course we have to pay if we want the real data.  But I want to see how much we can pull out of graph given to us as only as a jpg or bmp.   If we save the graph image and with some crafty manipulation of Maple see if we can actually squeek out some real (well approximate) data.  I suppose this could be a challenge.  Be interesting to see how someone would go about this.  How would I start?  Any ideas? 

Strange,

If after I execute the Threshold line and I recieve the error message, if I execute the same line again the error dissappears.  (Maple 12 by the way, so probably doesn't happen in the newer versions) intermittant bug I guess.

First 29 30 31 32 33 34 35 Last Page 31 of 48