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 - Xeda112358

Pages: 1 ... 256 257 [258] 259 260 ... 317
3856
Other Calculators / Re: Joint Spring Coding Competition
« on: March 02, 2011, 06:57:27 pm »
RPGs require a lot of work, though, and might discourage other programmers from joining :P

3857
Math and Science / Re: Favorite math theory/rules/law/et cetera.
« on: March 02, 2011, 06:53:17 pm »
That is because even math is theoretical :D
But think of this... when working with mod systems, negatives are really positive. So, say you are working in mod 8... you would count {0,1,2,3,...,6,7,0,1...}...

Now also consider the numbers that are not infinity, but by performing a mathematical operation, you still get that number (so n+a=n, n*a=n, et cetera).

Now say you work in mod r... -1 really equals r-1. Taking all of this into account, working with mod (r) where r is equal to one of the before mentioned "infinite" numbers, the very largest number is in fact -1. No matter how high you count, it has been proven you will never reach these numbers, but in a mod system, -1 means you are just 1 away from that number!

Anywho, that has nothing to do with the proof that 1+2+3+4... is less than 1, but it is still interesting, yes?

3858
Math and Science / Re: Favorite math theory/rules/law/et cetera.
« on: March 02, 2011, 06:44:07 pm »
Is it 1+2+3+4+... or is it 1-2+3-4+5-6...? I know one of them was proven to be -1/12 and the other to be -1/4

3859
Other Calculators / Re: Joint Spring Coding Competition
« on: March 02, 2011, 06:42:41 pm »
I'm pretty sure BASIC is going to be a programming category :D

3860
Math and Science / Re: Favorite math theory/rules/law/et cetera.
« on: March 02, 2011, 06:39:08 pm »
Both of those are among my favorites, but since I study sequences (both infinite and finite) in my spare time, I think I gotta love things like the Riemann Zeta function... it's also yet another reason to love those Taylor Series ♥

3861
TI-BASIC / Re: Zeda's Hex Codes
« on: March 02, 2011, 06:29:28 pm »
It only uses two bytes, though, but I have been meaning to get around to making an actual search/replace function for BatLib, so when I do, I will post the code :D

EDIT:I just thought of an interesting use for this program !
Code: [Select]
1→B
ClrHome
Disp " Goto  1"," Goto  2"," Goto  3    ;Put a space before the numbers :P
Repeat A=105
Output(B,1,"}
Repeat A
getKey→A
End
Output(B,1,"                         ;There is a space there
B+(A=34)-(A=25
If Ans=4 or not(Ans
1+2not(Ans
Ans→B
End
"EB1→Str2
"Goto A→Str1
"Goto "+sub("123",B,1
Asm(prgmB
Goto A
Lbl 1
1
Goto Z
Lbl 2
2
Goto Z
Lbl 3
3
Lbl Z
Pause Ans
You can potentially avoid using the Menu( command to jump to labels if you reallllly don't want to use the built in Menu( command :D

3862
TI Z80 / Re: Notepad
« on: March 02, 2011, 06:26:47 pm »
I used to make my readmes as programs on the calc back when I had no internet or a calc-to-computer USB. I would just give it to friends and they could read the readmes directly on their calcs! They were usually around 2 000 bytes, though...
This could be really useful...

3863
TI-BASIC / Re: Extra Detail Suite
« on: March 02, 2011, 04:16:25 pm »
Ah, cool, Sir! The most graphics I have used in a math program is this:

I've never really worked on the graphics part of programs except in games... I think the reason is that I always worry about memory, so I prefer to keep the sizes small. Smaller sizes usually means less graphics.

3864
TI-BASIC / Re: Zeda's Hex Codes
« on: March 02, 2011, 12:26:05 pm »
It isn't the opcodes that break when you press ON, it breaks when the program finishes and enters BASIC again :D
Anywho, instead of editing my previous post, here is an opcode:
Code: [Select]
EFD74AFE04C0
1313
21B184EB
EDA0EDA0
3EAA327984D7D878B7C0
1313
21AF84EB
EDA0EDA0
3C327A84D7D878B7C0
EB4E234623
117884
EDB0
AF12
EFF142D878B7C0
EB4E234623

3AAF84
EDB1E0
3AB084
BE20F4
3AB284
772B
3AB184
7723EDA1E018E5
The inputs are:
Str1=SearchStr
Ans=ReplaceStr
Str2=VarName

What it does is it takes the first two bytes of the search string and finds those in the variable you are searching. Every time it comes across a match, it replaces it with the first two bytes of the replace string.
*VarName uses the same syntax as CopyProg

So if I wanted to change every instance of Goto 0 to Goto V in prgmRAWRZ
Code: [Select]
"ERAWRZ→Str2
"Goto 0→Str1
"Goto V
Asm(prgmREPLACE
Since tokens like Str1 and Pic1 are two bytes, you can similarly do something like:
Code: [Select]
"ERAWRZ→Str2
"Pic1→Str1
"Pic7
Asm(prgmREPLACE
The variables have to be in RAM in order to edit them, otherwise the code exits.

3865
BatLib / Re: Ideas-BatLib
« on: March 02, 2011, 11:38:16 am »
No, it doesn't slow anything down with more commands ^-^
I plan to keep adding to it as much as I can, but it is looking like by the end of this there will be over 100 commands. I plan to add a few other features when I get time that lets you use dim( the normal way on lists and matrices even if they are archived, too. I have been a little busy, lately, trying to get my GPA up, so I might not have time to program for a little while (meaning a week or two) :(

EDIT: Okay, I just checked... the average command uses 34.5 bytes of code (the bulk of the app is comprised of calls and a bitmap) so at this rate, I have enough room for 236 more commands :D
I will probably be adding more complicated things for future commands, though, that use a large chunk of memory. When I added the 12 rectangle routines, I used almost 700 bytes of code.

3866
Humour and Jokes / Re: 9001 signs you're addicted to calcs and Omni
« on: March 02, 2011, 01:55:54 am »
1391: You find yourself quoting "Omnomnom" in conversations.

3867
Miscellaneous / Re: Clever jokes to 1000
« on: March 02, 2011, 01:46:56 am »
Why was 6 afraid of 7? Because together they know that if they multiply, the true answer to life, the universe, and everything (Chuck Norris) would remove them from existence. So yeah, 6 and 7 are close-- real close-- but they know to never reproduce multiply.

3868
Miscellaneous / Re: Clever jokes to 1000
« on: March 02, 2011, 01:40:39 am »
Sir, that reminds me of a joke that I heard:
Q) What's worse than finding a worm in your apple?
A) The Holocaust.

Anywho, Chuck Norris is the answer to 42.

3869
TI-BASIC / Re: Zeda's Hex Codes
« on: March 01, 2011, 11:07:45 pm »
I have an idea: how about a program that allows detection of multiple key presses (like the one in BatLib, I think)? I might find that useful in some BASIC programs.
Hmm, as a quick reference to that, you can check here for two versions of what you might be looking for. returns all of the keys being pressed in the form of a 7 element list. This is command 10 (pretty much) in BatLib.

A better option might be this might be more practical/useful as it doesn't require an input. This is command 43 in BatLib.
That would be handy, and so would an inline editor.What about a find and replece routine where you could search for str1 in a var and replace it with str2? You can do that with copyprog but an opcode would be faster.
A code to change token vars (not programs/appvars or other named vars) is actually not too difficult. I will come up with one shortly and edit this post when I have it finished!

EDIT: Actually, see my next post for the code :D

3870
ASM / Re: APQ (Another Parser Question)
« on: March 01, 2011, 05:02:15 pm »
Okay, thanks ♥ I am debugging right now, too, so that I can see exactly what is going on :)

EDIT: Trying to find the pointer to the arguments...
EDIT 2: Found it :D I was working from the homescreen instead of a program...

Pages: 1 ... 256 257 [258] 259 260 ... 317