casperyc

962 Reputation

10 Badges

17 years, 183 days
University of Kent
Dr

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by casperyc

thank you

thank you

hmmmmm, that's much easier.

thanks.

 

casper

hmmmmm, that's much easier.

thanks.

 

casper

what went wrong?

I have quoted the 'i' using ||i||

 

a:=[1,2,3];whattype(a);nops(a);a[1];a[2];a[3];

for i to nops(a) do
save a[i], "a_"||i||".key";
od;

 

for i to nops(a) do
save a[i], "a_"||i||";    # i just want them to be a_1, a_2 ,a_3
od;

 

Maple 13.01 winxp_sp3

not working

 

Thanks.

 

casper

what went wrong?

I have quoted the 'i' using ||i||

 

a:=[1,2,3];whattype(a);nops(a);a[1];a[2];a[3];

for i to nops(a) do
save a[i], "a_"||i||".key";
od;

 

for i to nops(a) do
save a[i], "a_"||i||";    # i just want them to be a_1, a_2 ,a_3
od;

 

Maple 13.01 winxp_sp3

not working

 

Thanks.

 

casper

the aim is that i am producing a table / array
it has to look like

 

   A      B      C  
   2       3      1
  1       2       3

   2       4      5

 

dont care it's an table or array
then I need to save each line in a parameter.

the aim is that i am producing a table / array
it has to look like

 

   A      B      C  
   2       3      1
  1       2       3

   2       4      5

 

dont care it's an table or array
then I need to save each line in a parameter.

Hi,

Maybe I misunderstood it, correct me if I am wrong.

I think maplet is something that you wrote a processure, then you make it interactive. that kind of thing.

I found it very difficult to learn how to creat one.

 

Just for example,say I want to use

UniqueRandom := proc( n, N )
  local R, S;
  R := rand( N );
  S := {};
  while nops(S)<n do
    S := { seq(R(),i=1..5) }; print( S );
  end do;
  return( S );
end proc:
 

as the code, and creat a maplet that only requires 2 input.

 

How do I do so? simple Export As ... wont do anything as you said, just saves the codes.

Thanks.

 

casper

 

 

Hi,

Maybe I misunderstood it, correct me if I am wrong.

I think maplet is something that you wrote a processure, then you make it interactive. that kind of thing.

I found it very difficult to learn how to creat one.

 

Just for example,say I want to use

UniqueRandom := proc( n, N )
  local R, S;
  R := rand( N );
  S := {};
  while nops(S)<n do
    S := { seq(R(),i=1..5) }; print( S );
  end do;
  return( S );
end proc:
 

as the code, and creat a maplet that only requires 2 input.

 

How do I do so? simple Export As ... wont do anything as you said, just saves the codes.

Thanks.

 

casper

 

 

i see. I thought that will be an easier way to do it.

you do that by setting it as a set, then check the number of elements in the set.

Thanks.

casper

i see. I thought that will be an easier way to do it.

you do that by setting it as a set, then check the number of elements in the set.

Thanks.

casper

I might not need "all", just in case i need it.

thanks.

Casper

 

 

I might not need "all", just in case i need it.

thanks.

Casper

 

 

yes it is exactly what i mean. I want all computation to be done in modulo 26.

and i am looing for an easy way to do it.

 

Thank you anyway.

casper

 

First 11 12 13 14 15 16 17 Last Page 13 of 22