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

#51 2011-05-18 00:17:52

Joeman592
Scratcher
Registered: 2010-01-23
Posts: 100+

Re: Xenon Inc. Developers' Thread

i'm creating a basic calculator using 3 digits or less. It's coming out pretty good. I'm not sure why i'm saying this... It's called "Nuclear Engine"... it won't be as good as Xenon though.

EDIT: Whoa, i made the third page!

Last edited by Joeman592 (2011-05-18 00:19:06)


http://i.imgur.com/HcAj1.png
http://i.imgur.com/gss7S.gifhttp://i.imgur.com/kbcKt.gifhttp://i.imgur.com/0LteM.gif

Offline

 

#52 2011-05-18 00:24:37

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

Re: Xenon Inc. Developers' Thread

amcerbu wrote:

If we were to do an equation solver, we would have to complete the current (postponed) project first.  We would need to simplify whatever the user inputs. 

I like the hand-drawn current idea, though.  And, again, I think that a 1s1s project would have a certain appeal (personally, I just like 1s1s).  I think it's also completely feasible.

Not postponed! We're working on both simultaneously!


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

Offline

 

#53 2011-05-18 03:45:43

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

Re: Xenon Inc. Developers' Thread

amcerbu wrote:

If we were to do an equation solver, we would have to complete the current (postponed) project first.  We would need to simplify whatever the user inputs. 

I like the hand-drawn current idea, though.  And, again, I think that a 1s1s project would have a certain appeal (personally, I just like 1s1s).  I think it's also completely feasible.

Yes, Xenon Equations would certainly come after Xenon Calculator, and likely after Xenon Grapher.

Offline

 

#54 2011-05-18 06:59:17

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

Re: Xenon Inc. Developers' Thread

scimonster wrote:

Do you mind if I ask the Inc. to be capitalized in the title?

Offline

 

#55 2011-05-18 08:17:00

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

Re: Xenon Inc. Developers' Thread

scratcher7_13 wrote:

Is this the same calculator collaboration? I was in that collaboration. If so, can you add me to this?

EDIT: Oh, I didn't see the link to the old thread. Can you add me?


♫ 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

 

#56 2011-05-18 09:23:11

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

Re: Xenon Inc. Developers' Thread

scimonster wrote:

scimonster wrote:

Do you mind if I ask the Inc. to be capitalized in the title?

Go ahead.

@Scratcher7_13: You haven't really contributed much, and I'm guessing you forgot about this until you saw this. I'll add you if you contribute a bit more, because it won't be fair to the others on the list, who have spent a lot of time on this.  wink


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

Offline

 

#57 2011-05-18 18:32:34

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

Re: Xenon Inc. Developers' Thread

Ahem, and also after the 3D grapher and basic programming language using Xenon, as well as the OS!

scimonster wrote:

amcerbu wrote:

If we were to do an equation solver, we would have to complete the current (postponed) project first.  We would need to simplify whatever the user inputs. 

I like the hand-drawn current idea, though.  And, again, I think that a 1s1s project would have a certain appeal (personally, I just like 1s1s).  I think it's also completely feasible.

Yes, Xenon Equations would certainly come after Xenon Calculator, and likely after Xenon Grapher.


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

 

#58 2011-05-18 22:05:57

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

Re: Xenon Inc. Developers' Thread

I really think an OS is pointless.  Just saying.  Now, an OS where you can write your own programs...

Offline

 

#59 2011-05-18 22:16:21

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

Re: Xenon Inc. Developers' Thread

amcerbu wrote:

I really think an OS is pointless.  Just saying.  Now, an OS where you can write your own programs...

...like the one I'm developing?

You need an inline code parser and a launcher + ways to add variables etc...


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

Offline

 

#60 2011-05-18 23:43:30

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

Re: Xenon Inc. Developers' Thread

Like basic for Scratch!

amcerbu wrote:

I really think an OS is pointless.  Just saying.  Now, an OS where you can write your own programs...


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

 

#61 2011-05-18 23:44:42

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

Re: Xenon Inc. Developers' Thread

applejack wrote:

Like basic for Scratch!

amcerbu wrote:

I really think an OS is pointless.  Just saying.  Now, an OS where you can write your own programs...

Or like QuickSilver.

Last edited by Hardmath123 (2011-05-18 23:46:21)


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

Offline

 

#62 2011-05-19 00:05:40

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

Re: Xenon Inc. Developers' Thread

I say this because most Scratch "operating systems" contain "applications" that show a slideshow, allow the user to paint, occasionally allow the user to type, and in even less cases, use a calculator. Now, QuickSilver is a bit different, but it's a bit too complicated for most users.  If we can deal with expression evaluation, we could easily make a programming language similar to BASIC. 

Now, as to evaluation.  This idea was rejected initially, but I would like to re-propose the shunting yard algorithm. A while back, Paddle2See made a calculator that used this method of evaluation.  The Wikipedia article is here

How it works:  Most expressions we use are expressed in infix, that is a + b.  However, the shunting-yard algorithm converts the expression to postfix, which would be a b +.  For example, infix: 3 + 4 * 2 / ( 1 - 5 ) ^ 2 ^ 3
Postfix: 3 4 2 * 1 5 − 2 3 ^ ^ / +
This eliminates the need for parentheses.  Here is the process as outlined by Wikipedia:

Code:

While there are tokens to be read:
     Read a token.
     If the token is a number, then add it to the output queue. 
     If the token is a function token, then push it onto the stack.
     If the token is a function argument separator (e.g., a comma):
          Until the token at the top of the stack is a left parenthesis, pop operators off the stack onto the output queue. If no left parentheses are encountered, either the separator was misplaced or parentheses were mismatched.
     If the token is an operator, o1, then:
          while there is an operator token, o2, at the top of the stack, and
                    either o1 is left-associative and its precedence is less than or equal to that of o2,
                    or o1 is right-associative and its precedence is less than that of o2,
               pop o2 off the stack, onto the output queue;
          push o1 onto the stack.
     If the token is a left parenthesis, then push it onto the stack.
     If the token is a right parenthesis:
          Until the token at the top of the stack is a left parenthesis, pop operators off the stack onto the output queue.
          Pop the left parenthesis from the stack, but not onto the output queue.
          If the token at the top of the stack is a function token, pop it onto the output queue.
          If the stack runs out without finding a left parenthesis, then there are mismatched parentheses.
When there are no more tokens to read:
     While there are still operator tokens in the stack:
          If the operator token on the top of the stack is a parenthesis, then there are mismatched parentheses.
          Pop the operator onto the output queue.
Exit.

Last edited by amcerbu (2011-05-19 00:07:08)

Offline

 

#63 2011-05-19 00:38:28

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

Re: Xenon Inc. Developers' Thread

amcerbu wrote:

I say this because most Scratch "operating systems" contain "applications" that show a slideshow, allow the user to paint, occasionally allow the user to type, and in even less cases, use a calculator. Now, QuickSilver is a bit different, but it's a bit too complicated for most users.  If we can deal with expression evaluation, we could easily make a programming language similar to BASIC. 

Now, as to evaluation.  This idea was rejected initially, but I would like to re-propose the shunting yard algorithm. A while back, Paddle2See made a calculator that used this method of evaluation.  The Wikipedia article is here

How it works:  Most expressions we use are expressed in infix, that is a + b.  However, the shunting-yard algorithm converts the expression to postfix, which would be a b +.  For example, infix: 3 + 4 * 2 / ( 1 - 5 ) ^ 2 ^ 3
Postfix: 3 4 2 * 1 5 − 2 3 ^ ^ / +
This eliminates the need for parentheses.  Here is the process as outlined by Wikipedia:

Code:

While there are tokens to be read:
     Read a token.
     If the token is a number, then add it to the output queue. 
     If the token is a function token, then push it onto the stack.
     If the token is a function argument separator (e.g., a comma):
          Until the token at the top of the stack is a left parenthesis, pop operators off the stack onto the output queue. If no left parentheses are encountered, either the separator was misplaced or parentheses were mismatched.
     If the token is an operator, o1, then:
          while there is an operator token, o2, at the top of the stack, and
                    either o1 is left-associative and its precedence is less than or equal to that of o2,
                    or o1 is right-associative and its precedence is less than that of o2,
               pop o2 off the stack, onto the output queue;
          push o1 onto the stack.
     If the token is a left parenthesis, then push it onto the stack.
     If the token is a right parenthesis:
          Until the token at the top of the stack is a left parenthesis, pop operators off the stack onto the output queue.
          Pop the left parenthesis from the stack, but not onto the output queue.
          If the token at the top of the stack is a function token, pop it onto the output queue.
          If the stack runs out without finding a left parenthesis, then there are mismatched parentheses.
When there are no more tokens to read:
     While there are still operator tokens in the stack:
          If the operator token on the top of the stack is a parenthesis, then there are mismatched parentheses.
          Pop the operator onto the output queue.
Exit.

Though that may be a good theorem for professional calculators, if we want this to be as user-friendly as possible, I still want to stick with the traditional method. Anyway, we've already worked quite hard on it  big_smile .

Last edited by Hardmath123 (2011-05-19 00:38:48)


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

Offline

 

#64 2011-05-19 00:43:52

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

Re: Xenon Inc. Developers' Thread

ssss, how are you doing?


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

Offline

 

#65 2011-05-19 00:58:54

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

Re: Xenon Inc. Developers' Thread

Hardmath123 wrote:

Though that may be a good theorem for professional calculators, if we want this to be as user-friendly as possible, I still want to stick with the traditional method. Anyway, we've already worked quite hard on it  big_smile .

Okay.  And I guess it's not quite as fun to code something when you copy it from somewhere else.  Just wanted to check in with you on that.

Offline

 

#66 2011-05-19 03:13:12

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Xenon Inc. Developers' Thread

Hardmath123 wrote:

ssss, how are you doing?

Can't find where to add the [replace X with Y]...


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#67 2011-05-19 03:24:33

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

Re: Xenon Inc. Developers' Thread

ssss wrote:

Hardmath123 wrote:

ssss, how are you doing?

Can't find where to add the [replace X with Y]...

For what?

Offline

 

#68 2011-05-19 03:25:31

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Xenon Inc. Developers' Thread

scimonster wrote:

ssss wrote:

Hardmath123 wrote:

ssss, how are you doing?

Can't find where to add the [replace X with Y]...

For what?

For the (4)(5) = (4)*(5) or the 4*Squroot (The symbol)


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#69 2011-05-19 03:33:50

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

Re: Xenon Inc. Developers' Thread

Who thinks the first project should be called Xenon Calculator? If we have 5 yeses, let's change it in the topic post.

@SSSS: sqrt already becomes √.

Last edited by scimonster (2011-05-19 03:35:26)

Offline

 

#70 2011-05-19 03:52:53

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Xenon Inc. Developers' Thread

scimonster wrote:

Who thinks the first project should be called Xenon Calculator? If we have 5 yeses, let's change it in the topic post.

@SSSS: sqrt already becomes √.

yes but i have to make 5√4 = 5*√4


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#71 2011-05-19 03:55:26

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

Re: Xenon Inc. Developers' Thread

You know what else we have to do? Remove brackets around negative numbers: "(-1)" would be:

(
-
1
)

Instead of "-1".

Offline

 

#72 2011-05-19 07:29:36

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

Re: Xenon Inc. Developers' Thread

ssss wrote:

scimonster wrote:

Who thinks the first project should be called Xenon Calculator? If we have 5 yeses, let's change it in the topic post.

@SSSS: sqrt already becomes √.

yes but i have to make 5√4 = 5*√4

Yeah, you don't need to look for 'sqrt', just for '√ '  wink .


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

Offline

 

#73 2011-05-19 07:31:07

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

Re: Xenon Inc. Developers' Thread

I sorta feelt bad about making you have a huge image that took up your whole signature so you couldn't add anything else, so I got this mode. Enjoy!

http://i.imgur.com/l78k7.png


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

Offline

 

#74 2011-05-19 07:36:09

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Xenon Inc. Developers' Thread

Hardmath123 wrote:

ssss wrote:

scimonster wrote:

Who thinks the first project should be called Xenon Calculator? If we have 5 yeses, let's change it in the topic post.

@SSSS: sqrt already becomes √.

yes but i have to make 5√4 = 5*√4

Yeah, you don't need to look for 'sqrt', just for '√ '  wink .

... I can't find that.  II just need to rite sqrt because i couldn't to the symbol -_-


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#75 2011-05-19 07:43:25

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

Re: Xenon Inc. Developers' Thread

ssss wrote:

Hardmath123 wrote:

ssss wrote:


yes but i have to make 5√4 = 5*√4

Yeah, you don't need to look for 'sqrt', just for '√ '  wink .

... I can't find that.  II just need to rite sqrt because i couldn't to the symbol -_-

I don't get that at all  tongue .

Just copy/paste this:

Code:

or use alt+v on a mac.


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

Offline

 

Board footer