Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - AngelFish

Pages: 1 ... 37 38 [39] 40 41 ... 215
571
What calculator model(s) are you talking about? The z80 calcs almost certainly don't have the processing power to run something as CPU intensive as Linux well. Things like the Nspire and the Prizm indeed run Linux, but they require specially compiled code (ARM5 and SuperH 3 respectively).

EDIT: Ninja'd

572
General Calculator Help / Re: Calc crushed!!
« on: August 02, 2011, 12:04:29 pm »
Quote
Even thepenguin77 told me that the reactions or my TI are "Interresting"...

I wouldn't take that to mean your calculator necessarily has something wrong with it.

573
Math and Science / Re: Loop all possible words algorithm
« on: August 02, 2011, 12:03:08 pm »
well, the general algorithm I suggested will get you that. I'm not surprised that the "code" I gave you segfaults because I didn't mean it as actual code :P

My idea was that you take an array of ascii characters and for each iteration, you increment the value of the lowest character in the array. If that character value overflows (goes above the ascii value of "z"), you change the value of that character back to the value of "a" and add one to the next character in the array (basically a carry bit like in binary addition). If that value overflows too, repeat the process until the characters stop overflowing.

574
Math and Science / Re: Loop all possible words algorithm
« on: August 02, 2011, 11:56:27 am »
The string length shouldn't be increasing that quickly. You should be getting a, b, c, d, ..., x, y, z, aa, ab, ac, ad, ..., zx, zy, zz, aab, etc...

575
Math and Science / Re: Loop all possible words algorithm
« on: August 02, 2011, 11:46:51 am »
Well, it was pseudo-code more than anything else.

576
Math and Science / Re: Loop all possible words algorithm
« on: August 02, 2011, 10:28:02 am »
Well, you could allocate an array, then do an infinite loop consisting of effectively

Code: [Select]

int N = max_word_length;
int *A = malloc (sizeof (int) * N);
char c;
int i;

while (1) {
A[i] = (A[i]+1)%(26+61);

}

Basically, you can increment the ascii values (And wrap them around with the modulo operator). If the ascii value in any particular byte overflows and wraps around to 0, then increment the next higher byte in the array. It's essentially treating the words as big numbers and adding them.

577
General Calculator Help / Re: Integral programs for Nspire?
« on: August 01, 2011, 03:13:40 pm »
Actually he had triple posts in between my apparent triple posts :P

No worries. Editing does that.

578
General Calculator Help / Re: Integral programs for Nspire?
« on: August 01, 2011, 01:50:07 pm »
Yeah, Wolfram-Alpha is a partial online version of Mathematica 8.

579
TI-BASIC / Re: Number systems
« on: August 01, 2011, 01:39:52 pm »
Spoiler For The Most optimized base converter possible:
Code: [Select]
PROGRAM:BASECONV
:Input Str1
:Ans→A
:Ans(2→A
:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ→Str2
:length(Str1
:sum(seq(LA(1)^(Ans-A)(inString(Str2,sub(Str1,A,1))-1),A,1,Ans→B
:"░ // one space
:For(C,1,log(AB+1)/log(A
:sub(Str2,int(E5×√2+AfPart(B/A^C)),1)+Ans
:End
:Ans

Example of usage:

Code: [Select]
{16,10:prgmBASECONV
?7C
► 124


In other words:
Code: [Select]
{<Base in>,<Base to be converted to>:prgmBASECONV
Input Number
► Answer

Code courtesy of weregoose.

580
General Calculator Help / Re: Integral programs for Nspire?
« on: August 01, 2011, 02:43:35 am »
Would you mind not double/triple posting within 6 hours of your last post on a thread? If you need to add more, just use the Modify button in the upper right corner of your post.

As for integration of transcendentals, that's still a difficult task (although slightly easier than arbitrary functions).

581
General Calculator Help / Re: Integral programs for Nspire?
« on: August 01, 2011, 02:19:34 am »
Because they take a ton of work to write and the organizations that typically purchase those products don't notice a few thousand dollars a single computer license.

582
General Calculator Help / Re: Integral programs for Nspire?
« on: August 01, 2011, 02:14:37 am »
Nope, that actually makes it harder/impossible in a lot of cases.

583
General Calculator Help / Re: Integral programs for Nspire?
« on: August 01, 2011, 01:49:43 am »
Mathematica is, overall, much better than Matlab. However, you need to get into some pretty nasty problems (Or integer math  <_<) before the difference in abilities and performance becomes noticeable. You'll also pay a pretty nice sum to buy Mathematica.

584
General Calculator Help / Re: Integral programs for Nspire?
« on: August 01, 2011, 01:47:06 am »
Well, someone *could* write such a program for the nSpire, but it'd only work for certain integrals.

585
General Calculator Help / Re: Integral programs for Nspire
« on: August 01, 2011, 01:39:15 am »
Because symbolic Integration is an incredibly difficult task (if you want to get technical, it's an undecidable problem to integrate an arbitrary function). The step-by-step integration available through packages like Mathematica is the result of a ton of code implementing very advanced algorithms and using a lot of processing power.

Pages: 1 ... 37 38 [39] 40 41 ... 215