![]() |
|
|
#1772 |
|
Aug 2006
3·1,993 Posts |
|
|
|
|
|
|
#1773 |
|
Aug 2006
3×1,993 Posts |
|
|
|
|
|
|
#1774 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
|
|
|
|
|
|
#1775 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
|
|
|
|
|
|
#1776 |
|
Aug 2006
3·1,993 Posts |
|
|
|
|
|
|
#1777 |
|
"Forget I exist"
Jul 2009
Dumbassville
203008 Posts |
|
|
|
|
|
|
#1778 |
|
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
The reason I never use the others is I can't get the d[x]==2 stuff to work. If I can't get this to work I can't work on digit by digit in string form.
|
|
|
|
|
|
#1779 |
|
Aug 2006
3×1,993 Posts |
I don't understand what part you're stuck on, but eval() won't help you get there.
Last fiddled with by CRGreathouse on 2010-11-29 at 00:59 |
|
|
|
|
|
#1780 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
Last fiddled with by science_man_88 on 2010-11-29 at 01:02 |
|
|
|
|
|
|
#1781 | |
|
Aug 2006
175B16 Posts |
Quote:
Making a string out of a number is easy: Str(n). Making this into a vector is similarly easy: Vec(Str(n)). If you want numbers rather than characters, you need eval(Vec(Str(n))). Possibly a better way is Vecsmall(Str(n)) which gives numbers that are 48 to 57 rather than 0 to 9. (You can subtract, of course, as desired.) |
|
|
|
|
|
|
#1782 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
doh! What am I doing checking if it's 2? Now I can just add them now and use carry to take care of everything thanks again. Last fiddled with by science_man_88 on 2010-11-29 at 01:26 |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why do I sometimes see all the <> formatting commands when I quote or edit? | cheesehead | Forum Feedback | 3 | 2013-05-25 12:56 |
| Passing commands to PARI on Windows | James Heinrich | Software | 2 | 2012-05-13 19:19 |
| Ubiquity commands | Mini-Geek | Aliquot Sequences | 1 | 2009-09-22 19:33 |
| 64-bit Pari? | CRGreathouse | Software | 2 | 2009-03-13 04:22 |
| Are these commands correct? | jasong | Linux | 2 | 2007-10-18 23:40 |