Wang Gaoteng

173 Reputation

12 Badges

14 years, 79 days

MaplePrimes Activity


These are replies submitted by Wang Gaoteng

Thanks. This package is very useful.

Best regards.

@pagan Thank you very much. 

But when running the following commands, it seems contradict with maple help document about 'MakeDirectory'.

FileTools:-MakeDirectory("c:\\homework\\work", 'recurse = true');
Error, (in mkdir) file or directory does not exist
FileTools:-MakeDirectory("c:\\homework");
FileTools:-MakeDirectory("c:\\homework\\work\\picture");

from the above commands,it seems that if first-level directory 'homework' does not exist, then can not generate the second-level directory 'work', even setting recurse=true.

So, it seems that if users want to generate multi-level directory, there are two steps:

1,generate the first-level directory, for example, 

   FileTools:-MakeDirectory("c:\\homework");

2,generate the multi-level directory you want, for example, 

   FileTools:-MakeDirectory("c:\\homework\\work\\picture");

3, the argument 'recurse' seems useless. For example,

   FileTools:-MakeDirectory("c:\\works");

   FileTools:-MakeDirectory("c:\\works\\works2\\works3",'recurse=true');

   Error, (in mkdir) file or directory does not exist

   If users want to generate folder works3, generate forlder works2 before it.

   restart;

   FileTools:-MakeDirectory("c:\\works");

   FileTools:-MakeDirectory("c:\\works\\works2");

   FileTools:-MakeDirectory("c:\\works\\works2\\works3");

   then works3 exists.


Is it a bug about MakeDirectory command?

@pagan Thank you very much. 

But when running the following commands, it seems contradict with maple help document about 'MakeDirectory'.

FileTools:-MakeDirectory("c:\\homework\\work", 'recurse = true');
Error, (in mkdir) file or directory does not exist
FileTools:-MakeDirectory("c:\\homework");
FileTools:-MakeDirectory("c:\\homework\\work\\picture");

from the above commands,it seems that if first-level directory 'homework' does not exist, then can not generate the second-level directory 'work', even setting recurse=true.

So, it seems that if users want to generate multi-level directory, there are two steps:

1,generate the first-level directory, for example, 

   FileTools:-MakeDirectory("c:\\homework");

2,generate the multi-level directory you want, for example, 

   FileTools:-MakeDirectory("c:\\homework\\work\\picture");

3, the argument 'recurse' seems useless. For example,

   FileTools:-MakeDirectory("c:\\works");

   FileTools:-MakeDirectory("c:\\works\\works2\\works3",'recurse=true');

   Error, (in mkdir) file or directory does not exist

   If users want to generate folder works3, generate forlder works2 before it.

   restart;

   FileTools:-MakeDirectory("c:\\works");

   FileTools:-MakeDirectory("c:\\works\\works2");

   FileTools:-MakeDirectory("c:\\works\\works2\\works3");

   then works3 exists.


Is it a bug about MakeDirectory command?

Thans a lot.

It works very well. By the way, can maple generate a certain folder automatically through some commands?

Best regards. 

Thans a lot.

It works very well. By the way, can maple generate a certain folder automatically through some commands?

Best regards. 

If I want to export a jpeg to a given path, for example, C:\homework\picture , then how can I to do it? If I don't want to change the current directory of maple.

Best regards.

If I want to export a jpeg to a given path, for example, C:\homework\picture , then how can I to do it? If I don't want to change the current directory of maple.

Best regards.

Thanks a lot! I learn some useful method from your advice.

Best regards.

Thanks a lot! I learn some useful method from your advice.

Best regards.

Thanks. Can you give some some details? Such as the commands to solve all roots of arctan(x) - 4*x/(1+x^2)=0 by using your advices?

Best regards.

Thanks. Can you give some some details? Such as the commands to solve all roots of arctan(x) - 4*x/(1+x^2)=0 by using your advices?

Best regards.

Thanks a lot! It works very well. By the way, in the last line of your suggestion, do you mean it is difficult to get all solutions of arctan(x) - 4*x/(1+x^2)=0 through fsolve command or some other numerical methods? And how to get the order of zero at x=0?

Best regards.

Thanks a lot! It works very well. By the way, in the last line of your suggestion, do you mean it is difficult to get all solutions of arctan(x) - 4*x/(1+x^2)=0 through fsolve command or some other numerical methods? And how to get the order of zero at x=0?

Best regards.

Thank you very much.

You method is very concise and effective.

Best regards.

Thank you very much.

You method is very concise and effective.

Best regards.

4 5 6 7 8 9 10 Page 6 of 13