This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#126 2011-05-23 00:14:04

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Xenon Inc. Developers' Thread

applejack wrote:

Of coure it is. Please update the banners/codes on the first page for my improved ones!  big_smile

Hardmath123 wrote:

amcerbu wrote:

Code:

                    ___           ___           ___   
     _____         /__/\         /__/\         /  /\  
    /  /::\        \  \:\       |  |::\       /  /::\ 
   /  /:/\:\        \  \:\      |  |:|:\     /  /:/\:\
  /  /:/~/::\   ___  \  \:\   __|__|:|\:\   /  /:/~/:/
 /__/:/ /:/\:| /__/\  \__\:\ /__/::::| \:\ /__/:/ /:/ 
 \  \:\/:/~/:/ \  \:\ /  /:/ \  \:\~~\__\/ \  \:\/:/  
  \  \::/ /:/   \  \:\  /:/   \  \:\        \  \::/   
   \  \:\/:/     \  \:\/:/     \  \:\        \  \:\   
    \  \::/       \  \::/       \  \:\        \  \:\  
     \__\/         \__\/         \__\/         \__\/

Cool, but is it necessary?

I did...


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#127 2011-05-23 00:21:37

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Inc. Developers' Thread

It's an online site that converts text to ASCII art.  Just search Google for ASCII art. 

I would like people to see this post, so here it is again: 

scimonster wrote:

@amcerbu: Is "1" the first thing? According to OOO, it goes "PEMDAS" - Parentheses, exponents, multiplication/division, addition/subtraction. I want to put our multi-letter ops with ^s.

Sorry for being unclear.  The system I described ranks operations of higher precedence (things that happen first) with higher numbers. 

amcerbu wrote:

Code:

Operator:   ^ * / + - mod() % sqrt() log() sin() cos() tan()
Precedence: 4 2 2 1 1 2     3 2      2     2     2     2

The operation with highest precedence is exponentiation ( ^ ).  I would like to say again that the user must format multi-letter operations like this: sqrt(x), sin(x).  That way, the value of the multi-letter operation is taken care of before moving on.  Think about this:

Code:

//In this representation, position up or down indicates bracket hierarchy.  
//The highest line is the innermost bracket set.  
//In our project, the program will evaluate the diagram "top to bottom."  
                                    3      
               4 + 5           log(   )    
      2 / sin(       ) + sqrt(          )
4 + (                                     )

Together, this makes:
4 + ( 2 / sin( 4 + 5 ) + sqrt( log( 3 ) ) )

I listed multi-letter operations with a precedence of 2 because, in fact, they will execute before the rest of the "line" on which the appear.  Consider 2 / sin( 4 + 5 ).  sin( 4 + 5 ) will be calculated before performing the 2 / ___ part. 

Hope that clears up what I said earlier.

Offline

 

#128 2011-05-23 00:50:52

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Inc. Developers' Thread

Yay!  big_smile

Hardmath123 wrote:

applejack wrote:

Of coure it is. Please update the banners/codes on the first page for my improved ones!  big_smile

Hardmath123 wrote:


Cool, but is it necessary?

I did...


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&type=square&user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=applejack

Offline

 

#129 2011-05-23 01:13:38

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Xenon Inc. Developers' Thread

amcerbu wrote:

It's an online site that converts text to ASCII art.  Just search Google for ASCII art. 

I would like people to see this post, so here it is again: 

scimonster wrote:

@amcerbu: Is "1" the first thing? According to OOO, it goes "PEMDAS" - Parentheses, exponents, multiplication/division, addition/subtraction. I want to put our multi-letter ops with ^s.

Sorry for being unclear.  The system I described ranks operations of higher precedence (things that happen first) with higher numbers. 

amcerbu wrote:

Code:

Operator:   ^ * / + - mod() % sqrt() log() sin() cos() tan()
Precedence: 4 2 2 1 1 2     3 2      2     2     2     2

The operation with highest precedence is exponentiation ( ^ ).  I would like to say again that the user must format multi-letter operations like this: sqrt(x), sin(x).  That way, the value of the multi-letter operation is taken care of before moving on.  Think about this:

Code:

//In this representation, position up or down indicates bracket hierarchy.  
//The highest line is the innermost bracket set.  
//In our project, the program will evaluate the diagram "top to bottom."  
                                    3      
               4 + 5           log(   )    
      2 / sin(       ) + sqrt(          )
4 + (                                     )

Together, this makes:
4 + ( 2 / sin( 4 + 5 ) + sqrt( log( 3 ) ) )

I listed multi-letter operations with a precedence of 2 because, in fact, they will execute before the rest of the "line" on which the appear.  Consider 2 / sin( 4 + 5 ).  sin( 4 + 5 ) will be calculated before performing the 2 / ___ part. 

Hope that clears up what I said earlier.

I was thinking along the following code:

Code:

//scanning is defined as changing a variable by one until item(var)of[Problem list] = what you're scanning for
 
n = 1
forever{
  repeat until (not <Problem list contains item [n] of [OOO]>)
    scan for item n of OOO
    do operation with item (var - 1) of problem list, and item (n + 1) of problem list
    replace all three with result
  n = n + 1
}

Last edited by Hardmath123 (2011-05-23 01:14:50)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#130 2011-05-23 01:23:56

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Inc. Developers' Thread

Sounds good!  I think that should work! 

Do you program in C++?  because the { } is a dead giveaway.

Offline

 

#131 2011-05-23 06:56:55

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Xenon Inc. Developers' Thread

amcerbu wrote:

Sounds good!  I think that should work! 

Do you program in C++?  because the { } is a dead giveaway.

JavaScript  big_smile


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#132 2011-05-23 09:20:29

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Inc. Developers' Thread

Objective-C  smile

Hardmath123 wrote:

amcerbu wrote:

Sounds good!  I think that should work! 

Do you program in C++?  because the { } is a dead giveaway.

JavaScript  big_smile


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=square&amp;user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=text&amp;user=applejack

Offline

 

#133 2011-05-23 09:21:42

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Inc. Developers' Thread

And TI Basic

applejack wrote:

Objective-C  smile

Hardmath123 wrote:

amcerbu wrote:

Sounds good!  I think that should work! 

Do you program in C++?  because the { } is a dead giveaway.

JavaScript  big_smile


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=square&amp;user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=text&amp;user=applejack

Offline

 

#134 2011-05-23 09:37:43

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Inc. Developers' Thread

C++ and TI BASIC.  [/offtopic]

So who is gonna do the evaluation coding?

Offline

 

#135 2011-05-23 21:10:18

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Xenon Inc. Developers' Thread

Like a chain list of things?

I can work on it, but it never works for me due to the large if else cascading structure.
Maybe I'll help.


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#136 2011-05-23 23:08:22

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Inc. Developers' Thread

make the think seperatley, and then tak it onto the end when your done.

bbbeb wrote:

Like a chain list of things?

I can work on it, but it never works for me due to the large if else cascading structure.
Maybe I'll help.


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=square&amp;user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=text&amp;user=applejack

Offline

 

#137 2011-05-23 23:16:12

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Inc. Developers' Thread

What's [/offtopic] mean? And duh, we all use scratch.  tongue

amcerbu wrote:

C++ and TI BASIC.  [/offtopic]

So who is gonna do the evaluation coding?


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=square&amp;user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=text&amp;user=applejack

Offline

 

#138 2011-05-24 06:17:19

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Xenon Inc. Developers' Thread

applejack wrote:

What's [/offtopic] mean? And duh, we all use scratch.  tongue

amcerbu wrote:

C++ and TI BASIC.  [/offtopic]

So who is gonna do the evaluation coding?

It means get back ontopic; discussing what we are supposed to be.  tongue
[/offtopic]

Offline

 

#139 2011-05-24 16:35:30

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Inc. Developers' Thread

So, who wants to program the evaluation engine?  It will probably only be one person - if you look at Hardmath123's code above, it seems pretty simple.  The project is almost done...

Last edited by amcerbu (2011-05-24 16:37:45)

Offline

 

#140 2011-05-24 20:24:19

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Inc. Developers' Thread

[offtopic] How do you pack as  much as you do into your sig? I only get 400 characters... Ive just managed to sqeeze all that's in my sig in  sad  [/offtopic]

scimonster wrote:

applejack wrote:

What's [/offtopic] mean? And duh, we all use scratch.  tongue

amcerbu wrote:

C++ and TI BASIC.  [/offtopic]

So who is gonna do the evaluation coding?

It means get back ontopic; discussing what we are supposed to be.  tongue
[/offtopic]

Last edited by applejack (2011-05-24 20:25:12)


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=square&amp;user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&amp;type=text&amp;user=applejack

Offline

 

#141 2011-05-25 03:46:49

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Xenon Inc. Developers' Thread

amcerbu wrote:

So, who wants to program the evaluation engine?  It will probably only be one person - if you look at Hardmath123's code above, it seems pretty simple.  The project is almost done...

No, I don't think it's actually that simple. Don't forget all the functions we have.

applejack wrote:

[offtopic] How do you pack as  much as you do into your sig? I only get 400 characters... Ive just managed to sqeeze all that's in my sig in  sad  [/offtopic]

scimonster wrote:

applejack wrote:

What's [/offtopic] mean? And duh, we all use scratch.  tongue

It means get back ontopic; discussing what we are supposed to be.  tongue
[/offtopic]

Some of them are goo.gl links, which shorten the URL.

Offline

 

#142 2011-05-25 06:01:35

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Xenon Inc. Developers' Thread

How's it going Scratcher7_13?

PS: I added you to the active list.  smile


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#143 2011-05-25 08:26:12

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Xenon Inc. Developers' Thread

I'm making something that checks that brackets and parentheses are matched, but should I add it to an existing project?

Hardmath123 wrote:

PS: I added you to the active list.  smile

Thanks!

Last edited by scratcher7_13 (2011-05-25 08:27:25)


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#144 2011-05-25 08:50:53

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Xenon Inc. Developers' Thread

scratcher7_13 wrote:

I'm making something that checks that brackets and parentheses are matched, but should I add it to an existing project?

Hardmath123 wrote:

PS: I added you to the active list.  smile

Thanks!

Remix scimonster's projet.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#145 2011-05-26 09:47:01

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Xenon Inc. Developers' Thread

Bump?


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#146 2011-05-26 11:29:22

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Inc. Developers' Thread

One more final exam, then I'm to summer!

Offline

 

#147 2011-05-26 11:33:21

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Xenon Inc. Developers' Thread

School starts June 1 for, me, I won't be as active then  sad .


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#148 2011-05-26 18:01:04

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Inc. Developers' Thread

@scratcher7_13: Could you tell us what you're planning to do?  The idea was to post code in [code] boxes before programming.  That way, we can fix out any kinks in the program before you upload it.

Offline

 

#149 2011-05-26 19:41:00

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Xenon Inc. Developers' Thread

amcerbu wrote:

@scratcher7_13: Could you tell us what you're planning to do?  The idea was to post code in [code] boxes before programming.  That way, we can fix out any kinks in the program before you upload it.

Yes. I'm still working on the code.


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#150 2011-05-26 19:45:55

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: Xenon Inc. Developers' Thread

Sorry, I don't understand the code very well, so I'm working through it.


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

Board footer