Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 124 users online: 7 members, 79 guests and 38 bots. Members: geekboy1011, GISdude, JamesV. Bots: VoilaBot (4), Spinn3r (1), MSN/Bing (1), Magpie Crawler (3), VoilaBot (11), Googlebot (1), Googlebot (16), MSN/Bing (1).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
|
| Author |
Message |
|
Devreugkx
Newbie

Joined: 21 Feb 2012 Posts: 18 Location: The Netherlands
|
|
| Back to top |
|
|
merthsoft
File Archiver

Joined: 09 May 2010 Posts: 2735
|
Posted: 11 May 2012 10:12:39 am Post subject: |
|
|
Why did you give up? Did you come across a problem you couldn't get past? Why not try to make it and ask here if there's something hanging you up. _________________ Shaun |
|
| Back to top |
|
|
Aes_Sedia5

Minor Calculator Deity

Joined: 01 Sep 2011 Posts: 1002 Location: Where Nightmares end and Dreams begin
|
Posted: 11 May 2012 10:46:37 am Post subject: |
|
|
We have many people here that can help. I have found in most situations, it is one or two small things that you are missing. _________________

 |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55746 Location: Earth, Sol, Milky Way
|
Posted: 11 May 2012 11:53:11 am Post subject: |
|
|
I second what both of these two said. Since you're posting in the TI-BASIC help forum, it would seem appropriate for us to help you through whatever is making you be stuck. Are you having trouble imagining the overall structure of the program in TI-BASIC, or some specific technical detail? _________________
 |
|
| Back to top |
|
|
Devreugkx
Newbie

Joined: 21 Feb 2012 Posts: 18 Location: The Netherlands
|
Posted: 11 May 2012 02:22:20 pm Post subject: |
|
|
I aspecially have a program with how I should program how the needle should fall.
I thought about random generate an X and Y starting coordinate and than an X an Y end coort. But than the line could be any length.
So I thought about also generate a number between 0 and 360 and draw a line (=the needle) from begin point in the generated direction.
But I have no idea how I should make that AND let the length be always the same length.
To check if the needle crosses one of the lines, I thought I could use the Pixel/Point check command. But don't know how to configure that one, because I never used it.
That are myt problems so far. |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55746 Location: Earth, Sol, Milky Way
|
|
| Back to top |
|
|
Kaslai

Member

Joined: 16 Nov 2011 Posts: 172 Location: ???, WA
|
|
| Back to top |
|
|
Devreugkx
Newbie

Joined: 21 Feb 2012 Posts: 18 Location: The Netherlands
|
Posted: 13 May 2012 10:00:55 am Post subject: |
|
|
@KermM, the code works, thanks!
@Kaslai, the iPart function is really helpful, but sometimes it gives a 'false' signal... |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55746 Location: Earth, Sol, Milky Way
|
Posted: 13 May 2012 11:49:00 am Post subject: |
|
|
What do you mean by that? Did you write the two cases, for horizontal and vertical strips, as Kaslai said? Or just the one? _________________
 |
|
| Back to top |
|
|
Devreugkx
Newbie

Joined: 21 Feb 2012 Posts: 18 Location: The Netherlands
|
Posted: 13 May 2012 11:56:30 am Post subject: |
|
|
I made a little mistake while programming, it's works fine now!
After about 500 needles, Pi was 3,18. |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55746 Location: Earth, Sol, Milky Way
|
Posted: 14 May 2012 09:35:40 am Post subject: |
|
|
| Devreugkx wrote: | I made a little mistake while programming, it's works fine now!
After about 500 needles, Pi was 3,18. | Superb! Are you going to shine this up a bit and upload it to our program archives?  _________________
 |
|
| Back to top |
|
|
Devreugkx
Newbie

Joined: 21 Feb 2012 Posts: 18 Location: The Netherlands
|
Posted: 14 May 2012 11:02:12 am Post subject: |
|
|
I will!  |
|
| Back to top |
|
|
|
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
|
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.034426 seconds.
|