Author Topic: Sierpinski's Triangle  (Read 10821 times)

0 Members and 3 Guests are viewing this topic.

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Sierpinski's Triangle
« on: October 08, 2010, 11:19:04 am »
well, so couple days ago, my teacher was talking about the Sierpinski's triangle for lack of anything else to talk about, and since me and a couple friends knew this stuff from a long time ago, we pulled out our calcs to play some games.  my teacher knew we liked calcs but he thought we were going to make a program to view it on-calc.  he said it wasn't possible, ;) so that made me want to make one.  by the time class was out, I had a BASIC (made by my friend) and an Axe version to wave in his face.  :P  but don't get me wrong, I like my math teacher.  ;D

anyway, so here are some screenies plus the programs

Serpnski is Axe
Axeserpnski is the source
and Srpenski is BASIC

it was funny how the Axe one was upside-down and I didn't bother to change that so I could flip my calc and have it shown right side up to him when I stood facing him.  (sorry for the weird wording.  :P)
« Last Edit: October 08, 2010, 12:08:52 pm by yunhua98 »

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Sierpinski's Triangle
« Reply #1 on: October 08, 2010, 11:27:23 am »
Nice. I hope your math teacher was impressed by this xD

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Sierpinski's Triangle
« Reply #2 on: October 08, 2010, 11:28:50 am »
yeah, but I think he was kinda pissed at the same time that he was proven wrong.  ;D

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Broseph Radson

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 295
  • Rating: +20/-1
  • Its 0x1A4 somewhere
    • View Profile
Re: Sierpinski's Triangle
« Reply #3 on: October 08, 2010, 12:04:34 pm »
Theres a program to draw the sierpinski's triangle listed in the 84+ manual

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Sierpinski's Triangle
« Reply #4 on: October 08, 2010, 12:08:11 pm »
there is?

wow, I just took the Basic version from my friend and ported it to Axe, but then again he keeps that thing everywhere he goes

btw, I never got a Manual with my calc, just a user guide. ???

EDIT:  why does my post have a scroll bar?
« Last Edit: October 08, 2010, 12:11:53 pm by yunhua98 »

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Broseph Radson

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 295
  • Rating: +20/-1
  • Its 0x1A4 somewhere
    • View Profile
Re: Sierpinski's Triangle
« Reply #5 on: October 08, 2010, 12:14:47 pm »
Maybe its the user guide. It has 2 example progs in it and has most of the catalog listed and explained near the end of it.

IDK though. I tried the example program for the triangle and either i did something wrong or it doesnt work. Or its just extremrly slow and inefficient lol

EDIT: Heres a pic of the book:
« Last Edit: October 08, 2010, 12:18:39 pm by Broseph Radson »

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Sierpinski's Triangle
« Reply #6 on: October 08, 2010, 12:19:41 pm »
no, the user guide has nothing about programming, only the manual, which I first read online.
Or its just extremrly slow and inefficient lol
thats what Axe is for  :P

EDIT:  yeah, I only have a really thin one that teaches you how to turn the calc on and off and basic graphing  :P
« Last Edit: October 08, 2010, 12:20:38 pm by yunhua98 »

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Sierpinski's Triangle
« Reply #7 on: October 08, 2010, 02:37:48 pm »
Maybe its the user guide. It has 2 example progs in it and has most of the catalog listed and explained near the end of it.

IDK though. I tried the example program for the triangle and either i did something wrong or it doesnt work. Or its just extremrly slow and inefficient lol

It's just really inefficient. That was the first program I ever tried and it took me a few tries to realize that I needed to leave the calc for a few hours. Being that slow, it almost put me off of programming.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Sierpinski's Triangle
« Reply #8 on: October 08, 2010, 02:39:34 pm »
Yeah and once its done, it doesnt even look that good.  I made a much faster, much nicer version of my own once i did some research into the Sierpinski triangle ^-^

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Sierpinski's Triangle
« Reply #9 on: October 08, 2010, 02:55:55 pm »
wait, so it doesn't generate dots as it goes?
TI really sucks at coding their own calcs.  :P

I guess my friend didn't get it off his bring-everywhere manual then.  :P

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Sierpinski's Triangle
« Reply #10 on: October 08, 2010, 03:32:11 pm »
Nope, mine draws from top to bottom ^^ it is kinda sideways tho :P

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Sierpinski's Triangle
« Reply #11 on: October 08, 2010, 03:36:22 pm »
I'm talking about TI's version  ;)

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Sierpinski's Triangle
« Reply #12 on: October 08, 2010, 03:37:31 pm »
Ohh gotcha, but you said "it doesnt generate dots as it goes", but isnt that what TI's does?

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Sierpinski's Triangle
« Reply #13 on: October 08, 2010, 03:38:59 pm »
nah, I was asking whether it did or not, since Broseph Radson said it didn't do anything, I thought maybe it displayed all the dots after an hour.

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Sierpinski's Triangle
« Reply #14 on: October 08, 2010, 03:42:23 pm »
Just thinking about it, you could easily generate the same image a hundred times as fast just with the pxl-On() and Line() commands.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ