Question: problem with use and parse


I woud like to read commands from a text file, that contains both expressions in Maple syntax  and  other  things too.
The following example is a simplified version of my problem.

The first example works as expected, it gives a vector of random data :

parse("Statistics:-Sample(Statistics:-RandomVariable(Normal(0, 1)),100)",statement) ;

The following line doesn't work for me (Maple 12), i. e Maple doesn't evaluate the Sample command.

use Statistics in parse("Sample(RandomVariable(Normal(0, 1)),100)",statement) ; end use;

Thanks for your help in advance.



Please Wait...