Declan

20 Reputation

4 Badges

9 years, 145 days

MaplePrimes Activity


These are replies submitted by Declan

@one man 

Thanks, this is great!

@Kitonum 

So that I can then use the number within them for something else?

@tomleslie 

Since:

a:=[1,1,3,4,5];

add(j*10^(numelems(a)-j), j in a);

 

Gives 20345.

This is the form in which I need the result though, without the quotation marks that is.

@Doug Meade 

So is there a way when using this method to choose where the values start, so instead of starting at 1 (squared, cubed and to the power 4 and so on) starting at say 3 (squared, cubed and to the power 4 and so on)?

Also is it possible to do a more complicated sequence? like in a for loop when you can say " for i from 1 to n by 2", as to only include the odd numbers?

And lastly how do I make the Matrix accept values the are output by a procedure of mine?
So say I had to procedures, proc1 and proc2. 
How would I make one column of the matrix have the values of proc1 and the second column have the values of proc2?


Sorry if this is too many questions.

But thanks, you have been really helpful.

@vv 

Thanks very much.

Quick question though, what does the 'if' and the j=1 do?

@Preben Alsholm 

That's great, thanks.

But is there not a way to have Maple print the a^x as arather than leaving it as a^x?

That's why I was using print in the first place, because I found that within print you can actually get a return of a.

Page 1 of 1