nm

12283 Reputation

20 Badges

13 years, 339 days

MaplePrimes Activity


These are replies submitted by nm

@Kitonum 

I tried it. I do not see any difference between it and the default color. But thanks for the suggestion.

restart;
#https://www.mapleprimes.com/questions/228539-Set-Size-Of-3D-Plot
setsize:=proc(P,sz::[posint,posint])
  op(0,P)(remove(type,[op(P)],'specfunc(ROOT)')[],
          ROOT(BOUNDS_X(0),BOUNDS_Y(0),
               BOUNDS_WIDTH(sz[1]),BOUNDS_HEIGHT(sz[2])));
end proc:

f:=-x^4-2*y^4+14*x^2*y^2/5:
p1:=plot3d(f, x=-5..5,y=-5..5,
   axes     = boxed,
   axesfont = [Times,default,10],
   axis  = [tickmarks=[3,subticks=5],thickness=0],
   labeldirections = [horizontal, horizontal, horizontal],        
   labels   = ['x', 'y', 'z'],
   title    = "default color",
   scaling  = unconstrained, view=[-5.2..5.2,-5.2..5.2,-1300..40]):
p1:=setsize(p1, [300,300]):
p2:=plot3d(f, x=-5..5,y=-5..5,
   axes     = boxed,
   axesfont = [Times,default,10],
   axis     = [tickmarks=[3,subticks=5],thickness=0,color="DarkSlateGray"],
   title    = "DarkSlateGray",
   labeldirections = [horizontal, horizontal, horizontal],        
   labels   = ['x', 'y', 'z'],
   scaling  = unconstrained, view=[-5.2..5.2,-5.2..5.2,-1300..40]):
p2:=setsize(p2, [300,300]):
p3:=plot3d(f, x=-5..5,y=-5..5,
   axes     = boxed,
   axesfont = [Times,default,10],
   axis  = [tickmarks=[3,subticks=5],thickness=0,color="gray"],
   title    = "gray color",
   labeldirections = [horizontal, horizontal, horizontal],        
   labels   = ['x', 'y', 'z'],
   scaling  = unconstrained, view=[-5.2..5.2,-5.2..5.2,-1300..40]):
p3:=setsize(p3, [300,300]):
plots[display](Array([p1,p2,p3]));

 

 

@Kitonum 

Thanks. When I used gray for the color of the frame, it made the actual ticks labels hard to read. Is there a way to make the frame itself light gray or gray or less thick of line, but not affect the actual ticks and the numbers on the tick? i.e. control the frame settings seperate from ticks and ticks labels?

restart;
f:=-x^4-2*y^4+14*x^2*y^2/5:
plot3d(f, x=-5..5,y=-5..5,
   axes     = boxed,
   axesfont = [Times,default,10],
   axis  = [tickmarks=[3,subticks=5],thickness=0,color=gray],
   labeldirections = [horizontal, horizontal, horizontal],        
   labels   = ['x', 'y', 'z'],
   scaling  = unconstrained, view=[-5.2..5.2,-5.2..5.2,-1300..40]);

 

 

@acer 

I see. This means someone got so upset with me to have to take away their vote for me for 3 different posts in such short time.

This has to have taken some work to do, as they would have to search for these in thre past and it is not easy to find where one have voted for someone else.

I am sorry I must have made someone so upset. I thought I was being helpful by posting some issues I found testing Maple, which took me 2 days to find them.

I will make sure from now on not to post about any problem I find in Maple any more. I really do not want to upset any one. This was the last post from me here.

 

I am also looking for the code for this book. Advanced Mathematical Methods with Maple, D. Richards

The link http://mcs.open.ac.uk/dr9  no longer works.

I gogoled and not able to find copy.

Any one has copy they can share? or place to download them from? The book itself I have a PDF copy of, but the book do not contain Maple code.

I would never export complete maple worksheet to Latex as the quality is not good at all. This is well known for years.

The best solution is to write the latex directly to a file, but one expression at a time (by converting the math expressions to latex using the latex() command, which for the most part works ok but could be better) and write, to the same file, any needed in-between Latex on the fly as the code runs.

At the end of the run, you have a latex file ready to compile.

This way you get best results. It is a little bit more work, but not too much, and with few helper functions it is not too much extra effort. But this assumes one knows some Latex themselves. This gives best results.

This is how I do everything when I want to export some work done using CAS to Latex. Been doing it for years and years using this method.

The hard stuff, which is converting math to Latex is done by CAS itself using its latex() command. The rest is just Latex formating which one can do themselfs. This way you control the actual formating in Latex instead of letting Maple do it.

 

I could give you an answer, but it will be deleted like the last question I answered which is very similar to yours. So will not bother wasting my time.

The command is called pdsolve. Someone below just asked for solution to 1D wave PDE in infinite domain. You can use the code posted there and modify it to fit your specific PDE. You can also look up help for pdsolve for more examples.

 

What are the PDE specification?

There are infinite number of combinations depending on what initial conditions, boundary conditions, domain type and so on.

So it will be a little hard to guess what you have in mind.

@Kros 

it works for me. Updated worksheet.

@Kros 

 

I put the worksheet. As you see, no errors.

@Katherina von Bulow 

Thank you!  I just downloaded version 633 of Physics package  and now Maple is able to solve this PDE as expected. Good job.

 

@vv 

I do not think there is ambiguity. The file is comma delimited. Mathematica can read the above using it as having 8 fields.

data = First@Import["data2.txt", "Table", "FieldSeparators" -> {","}, "Numeric" -> True]

           {1, 2, 3, "x+y, algorithm=[", 123, "]", "OK", 5}

 

 

 

@tomleslie 

thanks but It does not work for me on Maple 2020 on windows 10

a:=[parse(readline( "data.csv"))];

Error, incorrect syntax in parse: unexpected number (near 27th character of parsed string)
 

data.csv is 

 

 

@tomleslie 

thanks for the try. But I can't modify or edit the input files. There have to remain as is, used in other places and generated before and there are 1000's of them. 

@tomleslie 

Sorry, I meant to write "worksheet mode". I never use document mode. I was tried and wrote the wrong one.

Worksheet mode with 1D for input (i.e. classical Maple) and 2D for output.

First 61 62 63 64 65 66 67 Last Page 63 of 94