This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Your Projects subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Project Ideas/Start New Projects => Your Projects
Author Message
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 26 Nov 2003 02:11:12 pm    Post subject:

Arcane Wizard wrote:
1) Only 10 strings

Using Str -> Equ( and StoreGDB you can easily get much (about 151) more.

Quote:
2) 999->Dim(L1 = 9000 bytes each element holds 7 2-digit numbers, so a string would have to have 14*999 (13986) characters and a string can only hold 4797 characters.


you will only fit 2 lists like that into your ram but you can fit 24000 characters into your RAM with strings. If you want to get technical, each element holds 8 2-digit numbers, including the power of 10.

Quote:
3) Matrices suck.


Lists suck.

Quote:
4) If I used strings I wouldn't have any more excuses left to keep from having to finish my decent games (I'm lazy).


Just run Calcsys from time to time and screw with your memory. When it gets cleared, say 'Oops! My game got deleted!' this is the excuse I always end up using.
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 26 Nov 2003 02:13:07 pm    Post subject:

A=123456789 //positive integer number

B=3 //sub start
C=6 //sub end

Int(A*10^-Int(log(A)+1-C->A //cut of right part
A-Int(A*10^-Int(log(A)+2-B)*10^Int(log(A)+2-B->A //cut of left part

Result:
3456


Last edited by Guest on 26 Nov 2003 02:15:48 pm; edited 1 time in total
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 26 Nov 2003 02:27:18 pm    Post subject:

Using Str -> Equ( and StoreGDB you can easily get much (about 151) more.

Quote:
you will only fit 2 lists like that into your ram but you can fit 24000 characters into your RAM with strings.

But I don't want to use more than 1 string.

Quote:
Lists suck.
Not as much as Matrices.

Quote:
Quote:
4) If I used strings I wouldn't have any more excuses left to keep from having to finish my decent games (I'm lazy).
Just run Calcsys from time to time and screw with your memory. When it gets cleared, say 'Oops! My game got deleted!' this is the excuse I always end up using.
I don't have calcsys, any kind of link cable, and don't have an 83plus either, so unless somebody made a basic program called calcsys that is able to screw up your memory and takes less than 5 minutes to copy by typing it over manually it will never run on my calc.

Last edited by Guest on 26 Nov 2003 02:28:22 pm; edited 1 time in total
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 26 Nov 2003 02:28:22 pm    Post subject:

A = -1.2345678901234E25

boolean part: A=abs(A

1st 2-digit number: int(log(A

boolean part : Ans=abs(Ans

14 - digit number: A/10^(int(log(A

divide into another 7 2-digit numbers.

Total: 2 boolean numbers (0 to 1) and 8 2-digit numbers (0 to 99

that is 18 bytes. 16 are used for the 2-digit numbers (100/256 of the byte used), and 2 used for the 2 booleans (1/256 of the byte used). Sad isn't it?

Edit: Calcsys is an App.
Edit Edit: List don't suck as much as matrices, but they aren't as good as strings.
Edit Edit Edit: You don't have an 83 Plus? isn't that an excuse from finishing your decent games?


Last edited by Guest on 26 Nov 2003 02:30:49 pm; edited 1 time in total
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 26 Nov 2003 02:31:40 pm    Post subject:

Sir Robin wrote:
14 - digit number: A/10^(int(log(A

You don't need that first (

Quote:
Sad isn't it?
Jup.

Quote:
Edit: Calcsys is an App.
Ah, then it'll definetly never run on my calc. :)

Quote:
Edit Edit: List don't suck as much as matrices, but they aren't as good as strings.
True, if only strings could have custom names... sigh.

Quote:
Edit Edit Edit: You don't have an 83 Plus? isn't that an excuse from finishing your decent games?
Also true. Sad

Last edited by Guest on 26 Nov 2003 02:33:01 pm; edited 1 time in total
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 26 Nov 2003 02:55:22 pm    Post subject:

Arcane Wizard wrote:
Sir Robin wrote:
14 - digit number: A/10^(int(log(A

You don't need that first (


I was using the [2nd] + [log] variation to 'save space'

Quote:
Quote:
Edit: Calcsys is an App.
Ah, then it'll definetly never run on my calc. :)

Quote:
Edit Edit: List don't suck as much as matrices, but they aren't as good as strings.
True, if only strings could have custom names... sigh.


Get an 89. It has custom integer and string names, archive, lots of Ram, and other great stuff. Oh, wait... I forgot how much they cost...
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 26 Nov 2003 03:20:23 pm    Post subject:

Sir Robin wrote:
I was using the [2nd] + [log] variation to 'save space'

Ah, I see.

Quote:
Get an 89. It has custom integer and string names, archive, lots of Ram, and other great stuff. Oh, wait... I forgot how much they cost...
Sweet, but I'd probably get a laptop before getting any kind of better calc or pda, since I'll probably need (as in go and do Informatics, where laptops are a must) one when I go to college. Also note that I seem to have this black hole (yes, from space) in my wallet/pocket when it comes to money and don't have a job either.

BTW, I'm currently changing my RPG's game design into one with only a couple of big(ger) area's and a whole bunch of small ones (inside houses, randomly generated from a fixed seed), it will take place (mostly) inside a castle with all kinds of rooms and buildings on/around the main square and ofcourse in the area just around the castle... the story will be that you're a little peasant who want's to try his chances at becoming rich, famous, and powerfull in the big castle near his farm.
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 26 Nov 2003 03:29:22 pm    Post subject:

You could make the part inside the houses have more detailed pictures.
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 26 Nov 2003 03:33:05 pm    Post subject:

Yes, I could, but I'm already using a 15*10 (1 tile = 6*6 pixels) grid for the maps, which I think looks nice, especially in urban areas.

I might use 8*8 after all, to be able to put a bit of 3D effect into the castle's walls/building sprites. Or maybe 8*8 outside, 6*6 inside.


Last edited by Guest on 26 Nov 2003 03:33:23 pm; edited 1 time in total
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 26 Nov 2003 03:34:49 pm    Post subject:

I'm saying use 6x6 for the outside part, 8x8 for the inside houses part (or other sizes).
Back to top
Tyler


Advanced Member


Joined: 29 May 2003
Posts: 352

Posted: 26 Nov 2003 10:51:52 pm    Post subject:

You can't do this to me, I'm only in 8th grade accelerated math!

Quote:
Int(A*10^-Int(log(A)+1-C->A //cut of right part
A-Int(A*10^-Int(log(A)+2-Cool*10^Int(log(A)+2-B->A //cut of left part


Quote:
14 - digit number: A/10^(int(log(A


Could someone just give me a way to simply sub( numbers? Or if I had the number 09090909090909, how would I decompress that to

09-a
09-b
09-c
09-d
09-e
09-f
09-g

And copy it for some sprites and fun!
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 27 Nov 2003 08:50:19 am    Post subject:

The code in my post was a sub( routine for variables.

Here's how you could use it...
(stores first 2 digit number, second, third, etc. into L1)
109090909090909->A //that 1 is to prevent the calc from removing that first 0, the routine will ignore it since the for loop start at 2
.5Int(log(A->Dim(L1 //reserve space for 0.5(length(A)-1) numbers
For(X,2,Int(log(A)+1),2 //loops through A, from left to right with steps of 2
X->B //cut off everything before X
X+1->C //cut of everything after X+1
Int(A*10^-Int(log(A)+1-C->D
A-Int(A*10^-Int(log(A)+2-B)*10^Int(log(A)+2-B->D
D->L1(.5X //store the 2 digit number to the list
End

You could also do it like this of course:
109090909090909->Ø
2->Y
3->Z
Int(Ø*10^-Int(log(Ø)+1-Z->Ø
D-Int(Ø*10^-Int(log(Ø)+2-Y)*10^Int(log(Ø)+2-Y->A
4->Y
5->Z
Int(Ø*10^-Int(log(Ø)+1-Z->B
B-Int(Ø*10^-Int(log(Ø)+2-Y)*10^Int(log(Ø)+2-Y->B
6->Y
7->Z
Int(Ø*10^-Int(log(Ø)+1-Z->C
C-Int(Ø*10^-Int(log(Ø)+2-Y)*10^Int(log(Ø)+2-Y->C
etc.


Last edited by Guest on 27 Nov 2003 09:17:52 am; edited 1 time in total
Back to top
Tyler


Advanced Member


Joined: 29 May 2003
Posts: 352

Posted: 27 Nov 2003 01:51:51 pm    Post subject:

Truly Amazing. (Period)

Edit:But the calculator gets an overflow error Sad


Last edited by Guest on 27 Nov 2003 01:58:13 pm; edited 1 time in total
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 27 Nov 2003 02:34:27 pm    Post subject:

No errors over here, though I don't get the proper results either, probably made a typo somewhere... the previous routine does work though, just use the starting and ending variables (B and C in the example) to get those 2-digit numbers out of the big number.

EDIT: HAHAHAHA, Why all this trouble, you can just convert it to a string, use sub and then convert it back with expr(


Last edited by Guest on 27 Nov 2003 02:36:06 pm; edited 1 time in total
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 27 Nov 2003 02:51:27 pm    Post subject:

You would then have the problem of a decimal.

I convert 1.23477708686E24 to a string.

I get the 2-digit numbers: "1." "23" "47" "77" "08" 68" "6E" "24".

I was supposed to get "12" "34" "77" "70" "86" "24".

You see the problem.

You could do it like:

Code:
:While 9 < log(abs(X
:X/10 -> X
:End
:While 9 > log(abs(X
:10X -> X
:End
:int(X -> X

You would then have a number between 1 000 000 000 and 9 999 999 999 that you could convert to a string with no problems but you would lose 3 of the 2-digit numbers.


Last edited by Guest on 27 Nov 2003 02:51:42 pm; edited 1 time in total
Back to top
Tyler


Advanced Member


Joined: 29 May 2003
Posts: 352

Posted: 27 Nov 2003 08:48:03 pm    Post subject:

I'm a genius - Use my code if you plan on doing anything like this in the future


n=Number
l=Length
s=Start

int(log(n)+1->L
Lbl a
if (s+k-1)>L:L-S+1->K
10^(L-S+1)->D
iPart(10^KfPart(n/d))->X
If s>L:0->X

I feel smart now Very Happy
Finally I got that basic feeling again!
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 27 Nov 2003 10:56:08 pm    Post subject:

What is K?



Last edited by Guest on 28 Nov 2003 04:16:26 pm; edited 1 time in total
Back to top
Tyler


Advanced Member


Joined: 29 May 2003
Posts: 352

Posted: 28 Nov 2003 04:20:26 pm    Post subject:

N=Number
K=Length
S=Start

Sorry About That Razz
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 28 Nov 2003 04:22:50 pm    Post subject:

then what is L?
Back to top
Tyler


Advanced Member


Joined: 29 May 2003
Posts: 352

Posted: 28 Nov 2003 09:53:37 pm    Post subject:

L is just some random storing variable

Good idea with the pictures! Very Happy
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page Previous  1, 2, 3  Next
» View previous topic :: View next topic  
Page 2 of 3 » All times are UTC - 5 Hours

 

Advertisement