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 TI-BASIC 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. TI-Basic => TI-BASIC
United-TI Archives -> TI-Basic
 
    » Goto page Previous  1, 2, 3, 4, 5, 6  Next
» View previous topic :: View next topic  
Author Message
Weregoose
Authentic INTJ


Super Elite (Last Title)


Joined: 25 Nov 2004
Posts: 3976

Posted: 09 Nov 2007 03:40:33 pm    Post subject:

Am I the only one who has been receiving random crashes from different inputs?

[EDIT]

It turns out that X can exceed the dimension of LP. (The error occurs on the line that I last questioned in this thread.) Regardless, I think I understand the workings of this program, and am now inclined to rewrite it.

[EDIT×2]

And here it is:

Input X
{1→P
2→LMP(1
While max(not(fPart(X/LMP
max(not(fPart(X/LMP))seq(X,X,1,dim(LMP
If Ans
Then
LMP(Ans→LP(1+dim(LP
X/Ans→X
End
End
While X≠1
X/3
While X<Ans² and fPart(round(Ans
X/(X/Ans+2
End
If X>Ans²
1
X/Ans→LP(1+dim(LP
If not(max(LMP=Ans
Ans→LMP(1+dim(LMP
X/Ans→X
End
SortA(LMP
SortA(LP
LP

I rushed this, so it's probably not optimized all the way.


Last edited by Guest on 04 Sep 2010 11:28:13 pm; edited 1 time in total
Back to top
Steelersfan1693


Newbie


Joined: 04 Dec 2008
Posts: 32

Posted: 21 Oct 2009 11:48:09 am    Post subject:

Can somebody help me to find any more optimizations to be made in this program I actually found on this site but couldn't find an author. Here is the Source code if you need it:


Code:
:Delvar C
:Output(1,1,"+--------------+!(  ) (  ) (  )!! )(   )(   )( !!(  ) (  ) (  )!! )(   )(   )( !!(  ) (  ) (  )!+--------------+!Score:      !
:Starttimer->D
:Lbl 0
:Output(8,8,C
:int(9rand->X
:int(1+X/3->A
:X-3A+3->B
:Output(2A,3+5B,"{}
:Repeat A-1=iPart(Ans) and B=10fPart(Ans
:.1(getkey-72
:If 30=Checktimer(D
:Goto 1
:End
:Output(2A,3+5B," 
:C+1->C
:Goto 0
:Lbl 1
:Output(8,13,"WIN
:Pause
</div>

Last edited by Guest on 21 Oct 2009 11:49:39 am; edited 1 time in total
Back to top
GloryMXE7
Puzzleman 3000


Active Member


Joined: 02 Nov 2008
Posts: 604

Posted: 21 Oct 2009 12:16:14 pm    Post subject:

first of all where on the site did you find this program, and what was its name
second of all i still recommend checking out an optimization tutorial
and third of all please do not necropost, this topic has been dead for two years
and i don't see anything that could be optimized further so basically your wasting our time
Back to top
dxfan101010


Member


Joined: 31 Mar 2008
Posts: 194

Posted: 21 Oct 2009 12:25:58 pm    Post subject:

This program is optimized alot it was posted as a five minute program
Back to top
Steelersfan1693


Newbie


Joined: 04 Dec 2008
Posts: 32

Posted: 21 Oct 2009 12:45:37 pm    Post subject:

dxfan101010 wrote:
This program is optimized alot it was posted as a five minute program


Your sig is funny
Back to top
GloryMXE7
Puzzleman 3000


Active Member


Joined: 02 Nov 2008
Posts: 604

Posted: 21 Oct 2009 12:48:22 pm    Post subject:

Steelersfan1693 wrote:
dxfan101010 wrote:
This program is optimized alot it was posted as a five minute program


Your sig is funny

your sig is funny? really thats all you have to say, how does that have anything to do with what we are talking about.
Back to top
simplethinker
snjwffl


Active Member


Joined: 25 Jul 2006
Posts: 700

Posted: 21 Oct 2009 12:55:41 pm    Post subject:

GloryMXE7 wrote:
your sig is funny? really thats all you have to say, how does that have anything to do with what we are talking about.

That post was off-topic, but you might want to be a bit less rude. Smile
Back to top
GloryMXE7
Puzzleman 3000


Active Member


Joined: 02 Nov 2008
Posts: 604

Posted: 21 Oct 2009 01:26:06 pm    Post subject:

ok i turn it down a notch
Back to top
dxfan101010


Member


Joined: 31 Mar 2008
Posts: 194

Posted: 21 Oct 2009 02:28:56 pm    Post subject:

I dont think It was rude
Quote:
You know, instead of expecting someone to rewrite your massive excrements you call a program, you might try being polite and try asking someone to walk you through the optimization process of your code and improve your shitty coding technique. Or, optimize it yourself, you lazy bastard.

is rude
Back to top
ztrumpet


Active Member


Joined: 06 May 2009
Posts: 555

Posted: 21 Oct 2009 02:41:18 pm    Post subject:

@previous quote: Where's that from!? That's quite rude.

offtopic:
GloryMXE7 wrote:
ok i turn it down a notch
Wow, before all competitions we go: "Trumpets, Kick it up a notch! Bam!" Just thought it was quite ironic...


All in all, I think some of you/us are being a little hard on him. He dosn't always do everything the correct way, but wern't all of you the same when you first posted somewhere? I'd just cut him a little slack. Smile


Last edited by Guest on 21 Oct 2009 02:51:18 pm; edited 1 time in total
Back to top
GloryMXE7
Puzzleman 3000


Active Member


Joined: 02 Nov 2008
Posts: 604

Posted: 21 Oct 2009 03:34:53 pm    Post subject:

our trumpet section says B...L...O...W...H...A...R...D...Blowhard(dont ask)

oh and before our compititions our entire band yells our school initials, but now we're getting of topic
Back to top
dxfan101010


Member


Joined: 31 Mar 2008
Posts: 194

Posted: 21 Oct 2009 04:47:00 pm    Post subject:

A topic of stealearfans over on cemetech saying pretty much what we have said here in not so kind words

[topic="0"]http://cemetech.net/forum/viewtopic.php?t=3892&highlight=[/topic]
http://cemetech.net/forum/viewtopic.php?t=...&highlight=

And he has been reminded about post ettiquette on both fourms as well
so maby being rude is the only way to get through.

Steelersfan1693 wrote:
dxfan101010 wrote:
This program is optimized alot it was posted as a five minute program


Your sig is funny

Are we talking about my sig(question mark)


Last edited by Guest on 21 Oct 2009 04:52:27 pm; edited 1 time in total
Back to top
GloryMXE7
Puzzleman 3000


Active Member


Joined: 02 Nov 2008
Posts: 604

Posted: 21 Oct 2009 05:14:49 pm    Post subject:

yes he was talking about your sig, i think if he hasn't gotten a hint bynow ,there's not much we can do.
Back to top
dxfan101010


Member


Joined: 31 Mar 2008
Posts: 194

Posted: 21 Oct 2009 05:29:05 pm    Post subject:

If not from us that thread over @ cemetech has got to get the point across Ω
The author of that program is.Woodswolf


Last edited by Guest on 21 Oct 2009 05:32:25 pm; edited 1 time in total
Back to top
DigiTan
Unregistered HyperCam 2


Super Elite (Last Title)


Joined: 10 Nov 2003
Posts: 4468

Posted: 21 Oct 2009 06:05:55 pm    Post subject:

You know, for all the talk of etiquette today, Steelersfan has the most on-topic post. Wink

Last edited by Guest on 21 Oct 2009 06:06:08 pm; edited 1 time in total
Back to top
GloryMXE7
Puzzleman 3000


Active Member


Joined: 02 Nov 2008
Posts: 604

Posted: 21 Oct 2009 06:16:37 pm    Post subject:

uhm im not sure i understand :confused: , could you please elaborate.
Back to top
DigiTan
Unregistered HyperCam 2


Super Elite (Last Title)


Joined: 10 Nov 2003
Posts: 4468

Posted: 21 Oct 2009 06:30:15 pm    Post subject:

Board Rules wrote:
#9. You must try to stay on topic. If you are in an off topic discussion, please try to get back on topic or start another discussion thread about your topic.
Back to top
GloryMXE7
Puzzleman 3000


Active Member


Joined: 02 Nov 2008
Posts: 604

Posted: 21 Oct 2009 06:44:14 pm    Post subject:

oh yeah i get it now, we got off topic by talking about steelers post ettiqute when the topic was about ti basic optimization
Back to top
dxfan101010


Member


Joined: 31 Mar 2008
Posts: 194

Posted: 21 Oct 2009 07:27:42 pm    Post subject:

对不起 sorry pauses to create a new topic jk

so back on topic that program was posted in 5 minute programs and i assume it is already pretty optimized


Last edited by Guest on 21 Oct 2009 07:34:30 pm; edited 1 time in total
Back to top
Steelersfan1693


Newbie


Joined: 04 Dec 2008
Posts: 32

Posted: 22 Oct 2009 12:39:14 pm    Post subject:

simplethinker wrote:
GloryMXE7 wrote:
your sig is funny? really thats all you have to say, how does that have anything to do with what we are talking about.

That post was off-topic, but you might want to be a bit less rude. Smile




Thank you for sticking up for me.
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, 4, 5, 6  Next
» View previous topic :: View next topic  
Page 5 of 6 » All times are UTC - 5 Hours

 

Advertisement