Majmaj

55 Reputation

4 Badges

11 years, 230 days

MaplePrimes Activity


These are replies submitted by Majmaj

@Carl Love 

 

Thanks a lot.

@Carl Love 

Thank you ... this is big limitation in Maple. I have to use 4 local variables : A, B, C, D, and 6 local variables AB, AC, AD, BA, BC, BD. I generate randomly some questions with A, B, C, D:

for example if i generate A and B, i want to do  P (A and B)  := parse(cat("A", "B"));

And i dont want to do the if statement because i can have a lot case if i increase the number of variables. 

@Thomas Richard 

 

Thanks for you guys…

 

i appriciate a lot.

@Majmaj 

Here the code I will type it:

restart;

toto := proc ()

local fileName, funcPlot, i;

for i to 5 do

   fileName := cat("functionPlot_", i, ".eps");

   plotsetup(postscript, plotoutput = fileName, plotoptions = `color,portrait,height=350,width=350`);

   funcPlot :=plot(x^2*sin(i*x), x = -5 .. 5); print(plots:-display(funcPlot));

   plotsetup(default)

end do end proc;

toto();

Thanks for your response. Here is my code.

restart; toto := proc () local fileName, funcPlot, i; for i to 5 do fileName := cat("functionPlot_", i, ".eps"); plotsetup(postscript, plotoutput = fileName, plotoptions = `color,portrait,height=350,width=350`); funcPlot := plot(x^2*sin(i*x), x = -5 .. 5); print(plots:-display(funcPlot)); plotsetup(default) end do end proc; toto()
``

``



Download Example.mw

@Thomas Richard 

1 2 Page 2 of 2