Christopher2222

MaplePrimes Activity


These are replies submitted by Christopher2222

The option axis[1]=[mode=log] will you to a log scale on your x-axis

You asked for some sort of surface mesh plot.  The mesh plot in Matlab is the same as using the option  style=wireframe for a plot command in Maple. 

pointplot3d does not allow the connection of points (although with enough points it would suffice) however you will probably eventually want a connected mesh plot.  Downloading the surfplot package will do exactly what you want in Maple. 

If you provide us with your data we could show you multiple ways to get what you're after.

You asked for some sort of surface mesh plot.  The mesh plot in Matlab is the same as using the option  style=wireframe for a plot command in Maple. 

pointplot3d does not allow the connection of points (although with enough points it would suffice) however you will probably eventually want a connected mesh plot.  Downloading the surfplot package will do exactly what you want in Maple. 

If you provide us with your data we could show you multiple ways to get what you're after.

It appears it was a failed upload or the link became broken. 

This is all that is in that link now

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

It appears it was a failed upload or the link became broken. 

This is all that is in that link now

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

For your interest if you were also interested in the direction field shown on page 12

with(DEtools):
eq1 := diff(v(t), t) = 9.8-.196*v(t)
DEplot(eq1, v(t), t = 0 .. 5, v = 0 .. 80, arrows = smalltwo, [seq(v(0) = i, i = 0 .. 80, 10)], linecolor = blue)

but you probably got that already. 

For your interest if you were also interested in the direction field shown on page 12

with(DEtools):
eq1 := diff(v(t), t) = 9.8-.196*v(t)
DEplot(eq1, v(t), t = 0 .. 5, v = 0 .. 80, arrows = smalltwo, [seq(v(0) = i, i = 0 .. 80, 10)], linecolor = blue)

but you probably got that already. 

Can you at least plot one of the lines? 

Don't forget also that e is exp() in maple ie/ exp(-.0196*t)

What is your trouble?  Show us what you have attempted.

@muffinman123 Roman is right.  You must see [> before it will take effect.  And it will take effect if you've just changed it after the current execution group.  It won't work without [> no matter what you do, and that's because Maple uses that as a marker for entries to look graphically the same as you would write them on paper (or maybe they just forgot to incorporate the option in the code, I'm not really sure but I thought it was a good guess)

So, you can either open a new file in worksheet mode or use Crtl-J to insert the input below your current line and have your Maple Input set to Maple notation. 

@muffinman123 Roman is right.  You must see [> before it will take effect.  And it will take effect if you've just changed it after the current execution group.  It won't work without [> no matter what you do, and that's because Maple uses that as a marker for entries to look graphically the same as you would write them on paper (or maybe they just forgot to incorporate the option in the code, I'm not really sure but I thought it was a good guess)

So, you can either open a new file in worksheet mode or use Crtl-J to insert the input below your current line and have your Maple Input set to Maple notation. 

Thanks, I like that little proc.  The traperror will help when one is using sequences.  We can use it so the sequence won't break.

For example here

seq(`if`(is(whattype(traperror(tan((1/6)*i*Pi))) = string), "error", tan((1/6)*i*Pi)), i = 1 .. 12)

1  (1/2)   (1/2)                (1/2)    1      (1/2)        1  (1/2)   (1/2)          
- 3     , 3         , "error", -3          , - - 3        , 0,   - 3     ,  3     ,   "error",
3                                                3                    3                         

    (1/2)   1  (1/2)  
  -3     , - - 3       ,  0
             3 

 

Thanks, I like that little proc.  The traperror will help when one is using sequences.  We can use it so the sequence won't break.

For example here

seq(`if`(is(whattype(traperror(tan((1/6)*i*Pi))) = string), "error", tan((1/6)*i*Pi)), i = 1 .. 12)

1  (1/2)   (1/2)                (1/2)    1      (1/2)        1  (1/2)   (1/2)          
- 3     , 3         , "error", -3          , - - 3        , 0,   - 3     ,  3     ,   "error",
3                                                3                    3                         

    (1/2)   1  (1/2)  
  -3     , - - 3       ,  0
             3 

 

ah, okay I need four conditions to look at.   SlopeOut, position inside and outside of 0 and .5, and incidentSlope.  That's a lot of elif statements.

The refected lines are not reflected properly when slopeOut>0 and xin>0 as shown here


So I changed the first condition and added an extra elif statement in the DrawReflectedLine proc

if slopeOut >=0 and xin < 0 then
    plot(yOut, x = xin..xmax,color=yellow, thickness =2):
elif slopeOut >=0 and xin > 0 then
   plot(yOut, x= xmin..xin, color=yellow, thickness =2): 


But then of course when the reflected line slope is positive to the right from the point of contact it's not going to work either.  So I need something else, but I can't figure it out. 

Anyone?

Setting the light source at x=0.5 and changing a =  1/2 .. 2   is making my head spin trying to get it to work right. 

I've changed both [0,y0] points to [.5,y0] and changed the incidentSlope to incidentSlope:=( f(xcurr)-y0 ) / (xcurr - 0.5) and I know there's something in the DrawReflectedLine proc I need to change, like add more conditions but I can't quite figure it out. 

What are the conditions I need to change in the DrawReflectedLine proc?

First 97 98 99 100 101 102 103 Last Page 99 of 155