CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 110 users online: 2 members, 78 guests and 30 bots.
Members: tifreak8x.
Bots: Spinn3r (1), MSN/Bing (1), Magpie Crawler (4), VoilaBot (5), Googlebot (18), MSN/Bing (1).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
    » Goto page Previous  1, 2, 3, 4, 5, 6  Next
» View previous topic :: View next topic  
Author Message
Anakclusmos


Expert


Joined: 28 Jul 2009
Posts: 681
Location: The 5th Dimension

Posted: 14 Sep 2010 09:37:24 pm    Post subject:

Mad hey! how'd you do that checktimer thingy?
_________________
Just gettin back in da groove
Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 14 Sep 2010 09:44:09 pm    Post subject:

Anakclusmos wrote:
Mad hey! how'd you do that checktimer thingy?



Code:
startTmr -> A
For(X,1,100
//whatever you want to test
End
Disp checkTmr(A

_________________
CALCnet Tournament-38%


deviantArt
Back to top
_player1537


Guru-in-Training


Joined: 25 Nov 2009
Posts: 2958

Posted: 14 Sep 2010 09:46:13 pm    Post subject:

Starttimer is only on the 84+/se calculators. It takes the current time and stores it to a variable. CheckTimer() takes the current time minus the variable (the one you used with starttimer
_________________
http://tanner.myserverathome.com
Back to top
Anakclusmos


Expert


Joined: 28 Jul 2009
Posts: 681
Location: The 5th Dimension

Posted: 14 Sep 2010 09:47:15 pm    Post subject:

Sad having an 83+ is like holding a turd in your hands, saying "i wish i had food" and making the best of what you have.

it just sucks.
_________________
Just gettin back in da groove
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55764
Location: Earth, Sol, Milky Way

Posted: 14 Sep 2010 09:53:42 pm    Post subject:

Anakclusmos wrote:
Sad having an 83+ is like holding a turd in your hands, saying "i wish i had food" and making the best of what you have.

it just sucks.
In terms of archive space and such, but I like the hardware a lot more than the 84s because it's more hackable: separate chips, separate display, etc.
_________________


Back to top
Sonlen


Calculator Deity


Joined: 25 Aug 2010
Posts: 1679

Posted: 14 Sep 2010 09:54:09 pm    Post subject:

Please guys, keep on topic.... >.<
_________________
comicIDIOT wrote:
KermMartian wrote:
Stop double-posting. If you can't edit your posts, delete your old post before you post a new post.
I am too lazy to actually make my own post so instead I quote people and then don't say anything new


dragon1414@att.net / Google and Yahoo E-Mail
Back to top
Anakclusmos


Expert


Joined: 28 Jul 2009
Posts: 681
Location: The 5th Dimension

Posted: 14 Sep 2010 10:07:13 pm    Post subject:

i have a delima...im working on an Oncalc z80 compiler for the 83+ (in basic, not Progpad) and am replacing parameters in equates with their decimal form so i can just equ( to solve it.i need help converting a number to a string AS FAST AS POSSIBLE speed is of the essence
_________________
Just gettin back in da groove
Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 14 Sep 2010 10:10:09 pm    Post subject:

Celtic3: det(1,<number>)
Symbolic: numStr(<number>

Pure Basic:

http://tibasicdev.wikidot.com/number-to-string
_________________
CALCnet Tournament-38%


deviantArt
Back to top
Anakclusmos


Expert


Joined: 28 Jul 2009
Posts: 681
Location: The 5th Dimension

Posted: 14 Sep 2010 10:15:35 pm    Post subject:

Laughing thanks, its perfect!
_________________
Just gettin back in da groove
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55764
Location: Earth, Sol, Milky Way

Posted: 14 Sep 2010 10:31:15 pm    Post subject:

souvik1997 wrote:
Celtic3: det(1,<number>)
Symbolic: numStr(<number>

Pure Basic:

http://tibasicdev.wikidot.com/number-to-string
Very nice, good call. Smile And with the power of expr(), you can turn strings back into numbers!
_________________


Back to top
Weregoose


Cemetech Expert


Joined: 23 Oct 2009
Posts: 464

Posted: 14 Sep 2010 11:03:41 pm    Post subject:

Quote:

Code:
22
...
Code:
19

There needs to be a 4-second differential to constitute a proof. The timeframe of each test might well have a fixed length, but depending on whether it starts at the commencement or just before the culmination of the second on which it is first run, the number that it ultimately reports to have landed on can separate from its median by as much as a second in either direction, which marks ±[0,2) as the potential range for error.

15% is a loose lower bound at best. When you consider the number of elements as a possible factor, the ratio would expand into a linear equation with the dimension as the independent variable. Even without considering dim>1, a misreported time of 19 (e.g.) instead of a possible 20 would instantly add 4.5% to your estimate. It goes without saying that more iterations are necessary to more finely converge on the right value.
_________________
Common Errors in English · How To Ask Questions The Smart Way
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55764
Location: Earth, Sol, Milky Way

Posted: 15 Sep 2010 12:56:46 am    Post subject:

For sure; tanner, would you care to run those again for a larger number of iterations? I think this still gives you the rough idea that they're fairly close; it's not like they were off by an order of magnitude. In fact, I bet somewhere in the backend their execution overlaps significantly.
_________________


Back to top
Sonlen


Calculator Deity


Joined: 25 Aug 2010
Posts: 1679

Posted: 19 Sep 2010 01:52:11 pm    Post subject:

BASIC Code wrote:
:real(10,1,1
:If C≥1 and D≥1 and C≤4 and D≤4
:Then:"ZMAP1
:real(10,0,1
:prgmXMAP
:If C≥1 and D≥5 and C≤4 and D≤8
:"ZMAP2
:real(10,0,1
:prgmXMAP
:If C≥1 and D≥9 and C≤4 and D≤12
:"ZMAP3
:real(10,0,1
:prgmXMAP
:If C≥1 and D≥13 and C≤4 and D≤16
:"ZMAP4
:real(10,0,1
:prgmXMAP
:If C≥5 and D≥1 and C≤8 and D≤4
:"ZMAP5
:real(10,0,1
:prgmXMAP
:If C≥5 and D≥5 and C≤8 and D≤8
:"ZMAP6
:real(10,0,1
:prgmXMAP
:If C≥5 and D≥9 and C≤8 and D≤12
:"ZMAP7
:real(10,0,1
:prgmXMAP
:If C≥5 and D≥13 and C≤8 and D≤16
:"ZMAP8
:real(10,0,1
:prgmXMAP
:Return
Generated by SourceCoder, © 2005-2010 Cemetech


I believe the above code is how the Celtic ExecArcPrgm works, can I be corrected if I am wrong please?
_________________
comicIDIOT wrote:
KermMartian wrote:
Stop double-posting. If you can't edit your posts, delete your old post before you post a new post.
I am too lazy to actually make my own post so instead I quote people and then don't say anything new


dragon1414@att.net / Google and Yahoo E-Mail
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55764
Location: Earth, Sol, Milky Way

Posted: 19 Sep 2010 01:54:46 pm    Post subject:

1) You have a Then with no End
2) No, that's not how it works. It's something like this:


Code:
:"ZMAP1
:real(10,0,1  //create prgmXTEMP001 in RAM from ZMAP1
:prgmXTEMP001 //run it
:real(10,1,1  //delete it

_________________


Back to top
Sonlen


Calculator Deity


Joined: 25 Aug 2010
Posts: 1679

Posted: 19 Sep 2010 01:56:09 pm    Post subject:

KermMartian wrote:
1) You have a Then with no End
2) No, that's not how it works. It's something like this:


Code:
:"ZMAP1
:real(10,0,1  //create prgmXTEMP001 in RAM from ZMAP1
:prgmXTEMP001 //run it
:real(10,1,1  //delete it

Forgot about the end. >.< I will fix it and repost it.
_________________
comicIDIOT wrote:
KermMartian wrote:
Stop double-posting. If you can't edit your posts, delete your old post before you post a new post.
I am too lazy to actually make my own post so instead I quote people and then don't say anything new


dragon1414@att.net / Google and Yahoo E-Mail
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55764
Location: Earth, Sol, Milky Way

Posted: 19 Sep 2010 01:57:24 pm    Post subject:

Sure thing, but do you see what happens? It doesn't move prgmZMAP1 to RAM, it copies its contents into a temporary program, XTEMP001 for real(10,0,1), or XTEMP005 for real(10,0,5), etc.
_________________


Back to top
Sonlen


Calculator Deity


Joined: 25 Aug 2010
Posts: 1679

Posted: 19 Sep 2010 01:58:51 pm    Post subject:

KermMartian wrote:
Sure thing, but do you see what happens? It doesn't move prgmZMAP1 to RAM, it copies its contents into a temporary program, XTEMP001 for real(10,0,1), or XTEMP005 for real(10,0,5), etc.

I knew it copied the contents of it to another program, but I thought you defined the name of it.
_________________
comicIDIOT wrote:
KermMartian wrote:
Stop double-posting. If you can't edit your posts, delete your old post before you post a new post.
I am too lazy to actually make my own post so instead I quote people and then don't say anything new


dragon1414@att.net / Google and Yahoo E-Mail
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55764
Location: Earth, Sol, Milky Way

Posted: 19 Sep 2010 01:59:32 pm    Post subject:

You only define the last character of the name by the third argument to real(, as you hopefully now see?
_________________


Back to top
Sonlen


Calculator Deity


Joined: 25 Aug 2010
Posts: 1679

Posted: 19 Sep 2010 02:01:22 pm    Post subject:

BASIC Code wrote:
:If C≥1 and D≥1 and C≤4 and D≤4
:"ZMAP1
:real(10,0,1
:prgmXTEMP001
:real(10,1,1
:If C≥1 and D≥5 and C≤4 and D≤8
:"ZMAP2
:real(10,0,1
:prgmXTEMP001
:real(10,1,1
:If C≥1 and D≥9 and C≤4 and D≤12
:"ZMAP3
:real(10,0,1
:prgmXTEMP001
:real(10,1,1
:If C≥1 and D≥13 and C≤4 and D≤16
:"ZMAP4
:real(10,0,1
:prgmXTEMP001
:real(10,1,1
:If C≥5 and D≥1 and C≤8 and D≤4
:"ZMAP5
:real(10,0,1
:prgmXTEMP001
:real(10,1,1
:If C≥5 and D≥5 and C≤8 and D≤8
:"ZMAP6
:real(10,0,1
:prgmXTEMP001
:real(10,1,1
:If C≥5 and D≥9 and C≤8 and D≤12
:"ZMAP7
:real(10,0,1
:prgmXTEMP001
:real(10,1,1
:If C≥5 and D≥13 and C≤8 and D≤16
:"ZMAP8
:real(10,0,1
:prgmXTEMP001
:real(10,1,1
:Return
Generated by SourceCoder, © 2005-2010 Cemetech

So unless I can't read, this one should be correct.
_________________
comicIDIOT wrote:
KermMartian wrote:
Stop double-posting. If you can't edit your posts, delete your old post before you post a new post.
I am too lazy to actually make my own post so instead I quote people and then don't say anything new


dragon1414@att.net / Google and Yahoo E-Mail
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55764
Location: Earth, Sol, Milky Way

Posted: 19 Sep 2010 02:28:11 pm    Post subject:

It's sort of correct, except remember that an If without Then/End only executes one command. This is functionally correct and much much smaller:


Code:
:If C≥1 and D≥1 and C≤4 and D≤4
:"ZMAP1
:If C≥1 and D≥5 and C≤4 and D≤8
:"ZMAP2
:If C≥1 and D≥9 and C≤4 and D≤12
:"ZMAP3
:If C≥1 and D≥13 and C≤4 and D≤16
:"ZMAP4
:If C≥5 and D≥1 and C≤8 and D≤4
:"ZMAP5
:If C≥5 and D≥5 and C≤8 and D≤8
:"ZMAP6
:If C≥5 and D≥9 and C≤8 and D≤12
:"ZMAP7
:If C≥5 and D≥13 and C≤8 and D≤16
:"ZMAP8
:real(10,0,1
:prgmXTEMP001
:real(10,1,1

_________________


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 2 of 6 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.043924 seconds.