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

#101 2011-04-04 09:23:00

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

Re: Calling all math lovers and good programmers

Hardmath123 wrote:

scimonster wrote:

Hardmath123 wrote:

|ˈzēˌnän; ˈzenˌän|

?

Dictionary pronunciation guide.

OK...  tongue
BTW, you got the 100th post on this topic, but this is the 100th reply.  smile  Also, this is the 59599th topic ever posted on the forums. (Randomness.  tongue )

Offline

 

#102 2011-04-04 12:07:33

Necromaster
Scratcher
Registered: 2010-04-07
Posts: 1000+

Re: Calling all math lovers and good programmers

scimonster wrote:

Hardmath123 wrote:

scimonster wrote:


?

Dictionary pronunciation guide.

OK...  tongue
BTW, you got the 100th post on this topic, but this is the 100th reply.  smile  Also, this is the 59599th topic ever posted on the forums. (Randomness.  tongue )

Okaaaaaaaaaaaaaaaaay
Anyway moving on
Is it going to ask a question like my (simple) calculator
Or is it actually going to have graphics ?

Offline

 

#103 2011-04-04 12:11:01

Hadlab
Scratcher
Registered: 2011-03-18
Posts: 100+

Re: Calling all math lovers and good programmers

I have a very basic calculator to help: http://scratch.mit.edu/projects/Hadlab/1686488


Need a hand? Look no further! Just drop me a comment and I'll be delighted to help!   smile

Offline

 

#104 2011-04-04 16:34:22

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Calling all math lovers and good programmers

I would do it but you have tons of collab team members already.


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#105 2011-04-04 17:14:08

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

Re: Calling all math lovers and good programmers

Since no one wants to do the postfix stuff, how about this: 

Code:

Break input into list "input"
Until all parentheses are dealt with:
   Scan from beginning of "input" for "("
   Scan from beginning of "input" for ")"
   Add locations of these two parentheses in input list to list "parentheses_locations"
Until finished all locations in "parentheses_locations," start and end (innermost parentheses)
   Evaluate items in "input" list between"parentheses_locations"
   Replace items in "input" list with new value.
Display value

Offline

 

#106 2011-04-04 17:22:59

Necromaster
Scratcher
Registered: 2010-04-07
Posts: 1000+

Re: Calling all math lovers and good programmers

amcerbu wrote:

Since no one wants to do the postfix stuff, how about this: 

Code:

Break input into list "input"
Until all parentheses are dealt with:
   Scan from beginning of "input" for "("
   Scan from beginning of "input" for ")"
   Add locations of these two parentheses in input list to list "parentheses_locations"
Until finished all locations in "parentheses_locations," start and end (innermost parentheses)
   Evaluate items in "input" list between"parentheses_locations"
   Replace items in "input" list with new value.
Display value

Hmmmmm...
Scratch doesn't have any blocks for scanning inputs. But, we could store the inputs in a list...

When I receive 'input'
Set counter to [1]
repeat 'length of [input]'
  add letter [counter] of [input] to inputlist
  change counter by 1

Offline

 

#107 2011-04-04 17:26:46

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

Re: Calling all math lovers and good programmers

Necromaster wrote:

amcerbu wrote:

Since no one wants to do the postfix stuff, how about this:

Hmmmmm...
Scratch doesn't have any blocks for scanning inputs. But, we could store the inputs in a list...

When I receive 'input'
Set counter to [1]
repeat 'length of [input]'
  add letter [counter] of [input] to inputlist
  change counter by 1

Sorry if that wasn't clear.  That step was supposed to be represented by "break input into list "input."" This is a very rough draft.  The actual program would require several temporary variables for scanning first the input, then the lists.  I think we should strive to make this 0s1s, so in fact, no broadcasts required.

Last edited by amcerbu (2011-04-04 17:27:44)

Offline

 

#108 2011-04-04 19:57:42

SplitInfinitive
New Scratcher
Registered: 2011-03-30
Posts: 3

Re: Calling all math lovers and good programmers

It's funny, I'm doing the same thing, just by myself. Sigma Alpha

Offline

 

#109 2011-04-04 20:24:36

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: Calling all math lovers and good programmers

I made a graphing calculator-type thing myself which, while slow, can compute almost any equation with input x.
Here it is.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#110 2011-04-04 20:31:18

Necromaster
Scratcher
Registered: 2010-04-07
Posts: 1000+

Re: Calling all math lovers and good programmers

amcerbu wrote:

Necromaster wrote:

amcerbu wrote:

Since no one wants to do the postfix stuff, how about this:

Hmmmmm...
Scratch doesn't have any blocks for scanning inputs. But, we could store the inputs in a list...

When I receive 'input'
Set counter to [1]
repeat 'length of [input]'
  add letter [counter] of [input] to inputlist
  change counter by 1

Sorry if that wasn't clear.  That step was supposed to be represented by "break input into list "input."" This is a very rough draft.  The actual program would require several temporary variables for scanning first the input, then the lists.  I think we should strive to make this 0s1s, so in fact, no broadcasts required.

Ohkay... 0s1s. Not too hard and much cleaner and faster.  big_smile

Offline

 

#111 2011-04-04 23:03:30

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

Re: Calling all math lovers and good programmers

what if we want a loading icon?


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

 

#112 2011-04-05 01:35:43

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

Re: Calling all math lovers and good programmers

https://lh3.googleusercontent.com/i50S0J2o0inIXl24YNm9AU-S20X4rGadIBUgtcbyyZSA3GLvVnJwUsT4tiGx1G_6UcwbMzc2ucFLuzhAAA5u7OGVSw=s512https://lh5.googleusercontent.com/eMDBKgZmuXzLXMiLHGF50MZOv_X_4jRr7jw__5ph2crW6ji5932vzTwH8k-FgTyQbA3FSjSMq4G0gWP3rnaH8S6_Nw=s512https://lh5.googleusercontent.com/jAyuLAvW9T7b_Uuck7MJYuJ_7Uhzn880bKGToOWdlt9099w0Rmcp6zv4pV22Hn2rlTGo1dHkDfqstJ_XyhG_ACPfuA=s512

Tell me if you can see the above image.

Last edited by Hardmath123 (2011-04-05 01:46:08)


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

Offline

 

#113 2011-04-05 01:43:34

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

Re: Calling all math lovers and good programmers

Necromaster wrote:

amcerbu wrote:

Necromaster wrote:


Hmmmmm...
Scratch doesn't have any blocks for scanning inputs. But, we could store the inputs in a list...

When I receive 'input'
Set counter to [1]
repeat 'length of [input]'
  add letter [counter] of [input] to inputlist
  change counter by 1

Sorry if that wasn't clear.  That step was supposed to be represented by "break input into list "input."" This is a very rough draft.  The actual program would require several temporary variables for scanning first the input, then the lists.  I think we should strive to make this 0s1s, so in fact, no broadcasts required.

Ohkay... 0s1s. Not too hard and much cleaner and faster.  big_smile

I like the list idea, but this means we have to start over. I guess it's ok, we haven't done much anyway  tongue


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

Offline

 

#114 2011-04-05 01:56:53

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Calling all math lovers and good programmers

Are you sure you don't need any button sprites?


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#115 2011-04-05 04:10:16

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

Re: Calling all math lovers and good programmers

Well, we already have applejack for all graphics  hmm , you can ask him if he needs help.


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

Offline

 

#116 2011-04-05 05:18:10

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

Re: Calling all math lovers and good programmers

Offline

 

#117 2011-04-05 05:31:29

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

Re: Calling all math lovers and good programmers

scimonster wrote:

Yes, but it is too long for a sig.  wink

Really? The block lib banner's longer  hmm

P.S. I think you should stop working on the bracket opener. We've started to lean towards an engine which converts the whole thing into a list first, which means any non-list-based engine will be obsolete  sad


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

Offline

 

#118 2011-04-05 05:44:48

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

Re: Calling all math lovers and good programmers

Hardmath123 wrote:

scimonster wrote:

Yes, but it is too long for a sig.  wink

Really? The block lib banner's longer  hmm

P.S. I think you should stop working on the bracket opener. We've started to lean towards an engine which converts the whole thing into a list first, which means any non-list-based engine will be obsolete  sad

OK. It's the text that's too long for a sig.

Offline

 

#119 2011-04-05 06:20:20

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

Re: Calling all math lovers and good programmers

scimonster wrote:

Hardmath123 wrote:

scimonster wrote:


Yes, but it is too long for a sig.  wink

Really? The block lib banner's longer  hmm

P.S. I think you should stop working on the bracket opener. We've started to lean towards an engine which converts the whole thing into a list first, which means any non-list-based engine will be obsolete  sad

OK. It's the text that's too long for a sig.

I thought BBCode got eliminated?


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

Offline

 

#120 2011-04-05 06:29:55

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

Re: Calling all math lovers and good programmers

Hardmath123 wrote:

scimonster wrote:

Hardmath123 wrote:


Really? The block lib banner's longer  hmm

P.S. I think you should stop working on the bracket opener. We've started to lean towards an engine which converts the whole thing into a list first, which means any non-list-based engine will be obsolete  sad

OK. It's the text that's too long for a sig.

I thought BBCode got eliminated?

No.

ONTOPIC: So I should cancel what I'm doing now?  sad

Offline

 

#121 2011-04-05 06:40:42

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

Re: Calling all math lovers and good programmers

Yeah  sad  I'll have to delete the setup engine and my work on the non-bracket solver. This better make life easier  tongue


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

Offline

 

#122 2011-04-05 06:42:17

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

Re: Calling all math lovers and good programmers

scimonster wrote:

Hardmath123 wrote:

scimonster wrote:


OK. It's the text that's too long for a sig.

I thought BBCode got eliminated?

No.

*gasp* you're right!


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

Offline

 

#123 2011-04-05 06:43:03

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

Re: Calling all math lovers and good programmers

You know what we forgot in the setup engine? × and ÷  yikes

Offline

 

#124 2011-04-05 06:45:01

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

Re: Calling all math lovers and good programmers

scimonster wrote:

You know what we forgot in the setup engine? × and ÷  yikes

Who uses those? The standard ones are actually * and /.

How are we gonna do factorials. I made a factorial block (in the block library), but that won't work here.


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

Offline

 

#125 2011-04-05 07:36:18

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

Re: Calling all math lovers and good programmers

Hardmath123 wrote:

scimonster wrote:

You know what we forgot in the setup engine? × and ÷  yikes

Who uses those? The standard ones are actually * and /.

How are we gonna do factorials. I made a factorial block (in the block library), but that won't work here.

But they get used anyways.  hmm
I do not know. I suppose with a repeat method...

Code:

set [count] to [0]
set [factorial] to [0]
repeat (number)
  change [count] by (1)
  set [factorial] to ((factorial) * (count))

Offline

 

Board footer