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

#126 2011-04-05 07:42:57

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

Re: Calling all math lovers and good programmers

One thing.

In either one, have it scan for an equation like this:
(11*2)(2*3)
and have it put a * in between.


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

Offline

 

#127 2011-04-05 07:45:10

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

Re: Calling all math lovers and good programmers

Oh, yes.

Offline

 

#128 2011-04-05 11:20:33

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

Re: Calling all math lovers and good programmers

scimonster wrote:

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))

Well, we COULD make our own block for it, but then you'd have to install the block to use Xenon...  hmm

Offline

 

#129 2011-04-05 11:54:01

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

Re: Calling all math lovers and good programmers

Necromaster wrote:

scimonster wrote:

Hardmath123 wrote:


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))

Well, we COULD make our own block for it, but then you'd have to install the block to use Xenon...  hmm

Or use my method.  wink

Offline

 

#130 2011-04-05 12:27:29

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

Re: Calling all math lovers and good programmers

scimonster wrote:

Necromaster wrote:

scimonster wrote:


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))

Well, we COULD make our own block for it, but then you'd have to install the block to use Xenon...  hmm

Or use my method.  wink

*Sigh* Ok.  tongue

Offline

 

#131 2011-04-05 12:32:56

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

Re: Calling all math lovers and good programmers

Necromaster wrote:

scimonster wrote:

Necromaster wrote:


Well, we COULD make our own block for it, but then you'd have to install the block to use Xenon...  hmm

Or use my method.  wink

*Sigh* Ok.  tongue

After all, it is the best.  tongue

Offline

 

#132 2011-04-05 13:57:52

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Calling all math lovers and good programmers

Is this possible in Scratch? Maybe Panther...  hmm

Offline

 

#133 2011-04-05 14:09:43

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

Re: Calling all math lovers and good programmers

We're working on it.

Offline

 

#134 2011-04-05 14:18:58

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Calling all math lovers and good programmers

Could I help?

Offline

 

#135 2011-04-05 14:19:53

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

Re: Calling all math lovers and good programmers

scimonster wrote:

Necromaster wrote:

scimonster wrote:


Or use my method.  wink

*Sigh* Ok.  tongue

After all, it is the best.  tongue

Yes yes... Bow down to the almighty Scimonster.  tongue  (Gosh, I just love the  tongue  face)

Offline

 

#136 2011-04-05 20:13:48

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Calling all math lovers and good programmers

Paddle2See already has one.


Hai.

Offline

 

#137 2011-04-06 03:35:06

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

Re: Calling all math lovers and good programmers

Umm, repeat will be slow. Any better ideas?


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

Offline

 

#138 2011-04-06 03:35:39

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

Re: Calling all math lovers and good programmers

I'm advertising, just not a big banner! My sig says

Are we working?

Offline

 

#139 2011-04-06 05:13:56

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

Re: Calling all math lovers and good programmers

scimonster wrote:

I'm advertising, just not a big banner! My sig says

Are we working?

Oh, I didn't notice that  tongue

I'll add you to the list.

PS Working on what  tongue

PSS Is it just me or have people started getting addicted to the  tongue  smiley?  tongue


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

Offline

 

#140 2011-04-06 05:23:58

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

Re: Calling all math lovers and good programmers

tongue
Working on Xenon.  roll

Offline

 

#141 2011-04-06 05:31:41

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

Re: Calling all math lovers and good programmers

scimonster wrote:

tongue
Working on Xenon.  roll

Yeah, isn't that obvious? It wouldn't be in my signature if it wasn't being worked on...  tongue

Last edited by Hardmath123 (2011-04-06 05:32:14)


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

Offline

 

#142 2011-04-06 05:34:42

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

Re: Calling all math lovers and good programmers

Yeah...
So who's doing what now?

NONEDIT: 1500th post!!!  big_smile  big_smile  big_smile

Offline

 

#143 2011-04-06 18:19:12

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

Re: Calling all math lovers and good programmers

I'm making some graphics, and loading thingys

scimonster wrote:

Yeah...
So who's doing what now?

NONEDIT: 1500th post!!!  big_smile  big_smile  big_smile


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

 

#144 2011-04-07 04:30:57

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

Re: Calling all math lovers and good programmers

Checkpoint


Here's what we've accomplished:
•How to do exponents
•A reasonable method for bracket opening

Here's what we need to accomplish before next checkpoint:
•Finish a list-based setup engine
•Factorials

Last edited by Hardmath123 (2011-04-07 04:31:44)


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

Offline

 

#145 2011-04-07 05:15:47

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

Re: Calling all math lovers and good programmers

I gave you a factorial engine.  hmm

Offline

 

#146 2011-04-07 06:00:40

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

Re: Calling all math lovers and good programmers

Do you know how I can contact applejack?


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

Offline

 

#147 2011-04-07 06:01:10

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

Re: Calling all math lovers and good programmers

I meant without repeats. Repeats lag. Maybe (if we're not stuck on 1s1s) in the background a program could go on calculating the factorials, and adding them to a list.

forever
set n to 1
set factorial to 1
forever
set factorial to n*factorial
add factorial to (list)
change n by 1

Here, item (x) of (list) = (x)!


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

Offline

 

#148 2011-04-07 06:03:49

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

Re: Calling all math lovers and good programmers

jji7skyline wrote:

Do you know how I can contact applejack?

On his projects, on this site, and here (along with this thread, of course).


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

Offline

 

#149 2011-04-07 06:33:06

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

Re: Calling all math lovers and good programmers

I'd like 0s1s. The whole calculation will take time, and I don't see another way to do it.  hmm
Reason for 0s1s: to start my streak of 0s1s and 1s1s projects (I'm working on one now.)

Last edited by scimonster (2011-04-07 06:36:35)

Offline

 

#150 2011-04-07 06:35:23

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

Re: Calling all math lovers and good programmers

Ok, I suppose that's that then...


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

Offline

 

Board footer