## 192 Reputation

15 years, 223 days

## Great thanks for your answer. First opti...

Great thanks for your answer. First option seems ideal.

## Great thanks for your answer. First opti...

Great thanks for your answer. First option seems ideal.

## Thanks very much.   The last exampl...

Thanks very much.

The last example was pretty much the kind of thing I was after. Just looking to see what you can do with a single Array command. Probably wouldn't be ideal if you had to fill many rows but I'll cross that hurdle in due time.

I'll go experiment with the -> operator in arrays now.

Edit: And also the ` symbol which is something I've never used before.

## Thanks very much.   The last exampl...

Thanks very much.

The last example was pretty much the kind of thing I was after. Just looking to see what you can do with a single Array command. Probably wouldn't be ideal if you had to fill many rows but I'll cross that hurdle in due time.

I'll go experiment with the -> operator in arrays now.

Edit: And also the ` symbol which is something I've never used before.

## Actually just ignore this question. &nb...

Actually just ignore this question.

I need to go back and look at this function from scratch as it doesn't make any sense to me.

## Actually just ignore this question. &nb...

Actually just ignore this question.

I need to go back and look at this function from scratch as it doesn't make any sense to me.

## Oh I should probably say the reason the ...

Oh I should probably say the reason the checking each digit method doesn't work is that it would fail for say..

x = 1116 and then 1612 would be shown as a permutation since 1 and 6 are both 'in' 1612.

Perhaps I would have to test both ways (i.e. all digits of 1612 are in x) but then it wouldn't be ideal when using large numbers.

## @Marvin Ray Burns    Ah that...

Ah that's just a type, I've been using Digits all along.

## @Marvin Ray Burns    Ah that...

Ah that's just a type, I've been using Digits all along.

## Great thanks for that.   I'd just...

Great thanks for that.

I'd just thought I'd throw in this quick question rather than post another thread,

How do I display 1000 decimal places of a number?

Changing Round Screen Display in options doesn't work, Digit:=1000; doesn't work either, neither does evalf(Pi, 1000) (using Pi as an example here). What do I do?

## Great thanks for that.   I'd just...

Great thanks for that.

I'd just thought I'd throw in this quick question rather than post another thread,

How do I display 1000 decimal places of a number?

Changing Round Screen Display in options doesn't work, Digit:=1000; doesn't work either, neither does evalf(Pi, 1000) (using Pi as an example here). What do I do?

## Thanks for that.   I'm currently ...

Thanks for that.

I'm currently working through Project Euler in an attemp to improve my programming and time and time again questions about digits within numbers come up.

While I usually solve them, my code is never that fast. I'll have a look at that second code you posted as I seem to remember reading that it's best to not use 'calling functions' (is that the right term for things like convert, seq, add etc...) in a big loop and 'design' then yourself. So add would be just using a loop for example. Perhaps I read wrong but in any case would using something like convert not significantly slow down a large loop if it had to be used many times?

## Thanks for that.   I'm currently ...

Thanks for that.

I'm currently working through Project Euler in an attemp to improve my programming and time and time again questions about digits within numbers come up.

While I usually solve them, my code is never that fast. I'll have a look at that second code you posted as I seem to remember reading that it's best to not use 'calling functions' (is that the right term for things like convert, seq, add etc...) in a big loop and 'design' then yourself. So add would be just using a loop for example. Perhaps I read wrong but in any case would using something like convert not significantly slow down a large loop if it had to be used many times?

## Wow great find there! I managed to ge...

Wow great find there! I managed to get the 32 point example to work yesterday but on my laptop is took 5 hours! However I did manage to figure out that formula for the number of sequences that is on that wiki link (although my formula was just for when k=2 obviously). I'll look more into it but I'd like to find a constructive way to find all sequences without using computers (or graph theory I have to say...)

## Wow great find there! I managed to ge...

Wow great find there! I managed to get the 32 point example to work yesterday but on my laptop is took 5 hours! However I did manage to figure out that formula for the number of sequences that is on that wiki link (although my formula was just for when k=2 obviously). I'll look more into it but I'd like to find a constructive way to find all sequences without using computers (or graph theory I have to say...)
 1 2 Page 1 of 2
﻿