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

#26 2011-03-29 18:27:35

lemonpretzel
Scratcher
Registered: 2008-10-23
Posts: 100+

Re: Calling all math lovers and good programmers

scimonster wrote:

Hardmath123 wrote:

lemonpretzel wrote:

can i help? I'm good at math. I can make it calculate x^y, by 10^(y*log(x)) or e^(y*ln(x))
EDIT: why are the blocks showing up and the text in bold?[/blocks]

Code:

10^(y*log(x)) or e^(y*ln(x))

Type in a code box  wink

You needed an /blocks or else it didn't work in code.  yikes

But I didn't even type in [ blocks ]

Offline

 

#27 2011-03-30 06:59:49

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

Re: Calling all math lovers and good programmers

Yeah, that happens. (( makes (([/blocks]. The best way to deal with this is to convert (( to ([b][/b](.

P.S> this will be a 100% Scratch collab. No Panther/BYOB.

Last edited by Hardmath123 (2011-03-30 07:56:24)


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

Offline

 

#28 2011-03-30 07:44:32

cuddlycub
Scratcher
Registered: 2010-12-16
Posts: 100+

Re: Calling all math lovers and good programmers

math, no


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

Offline

 

#29 2011-03-30 10:08:41

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

Re: Calling all math lovers and good programmers

Bump


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

Offline

 

#30 2011-03-30 10:16:30

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

Re: Calling all math lovers and good programmers

Can I be a tester? I'd also like to make some nice graphics for it, like a loading bar and stuff. When you're done I could stuff it into my applebasic program, and also we could make it into a GRAPHING CALCULATOR, the best one on scratch. Plus, with the flash turbo it could be AWESOME. Good news: I'm now an official app developer for apple, by the name of applejack apps XD I can't wait for the whole thing to download!!! Please let me join this collab since we're done with Virus (I think) If you don't say no I'll assume it's a yes and will start making graphics! Have a nice spring break!  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

 

#31 2011-03-30 10:18:45

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

Re: Calling all math lovers and good programmers

Oh, and also I was playing with my dad's iTouch and looked at our website, it had a mobile version!!!


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

 

#32 2011-03-30 10:18:49

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

Re: Calling all math lovers and good programmers

Sure, you can join! So, let's get started. Can someone whip something up to do the following to an input:

delete all spaces
replace sqrt with ' √ '
repelace [ ] and { } with plain old ( )

That ought to be the firs step, in my opinion.


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

Offline

 

#33 2011-03-30 10:21:57

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

Re: Calling all math lovers and good programmers

Here's how we're gonna solve exponents:

http://wiki.scratch.mit.edu/images/Exponents_log_method.gif


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

Offline

 

#34 2011-03-30 10:43:33

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

Re: Calling all math lovers and good programmers

Hardmath123 wrote:

Sure, you can join! So, let's get started. Can someone whip something up to do the following to an input:

Delete all spaces
Replace sqrt with ' √ '
Replace [ ] and { } with plain old ( )

That ought to be the firs step, in my opinion.

Here you go: http://scratch.mit.edu/projects/scimonster/1690245
smile

Offline

 

#35 2011-03-30 11:25:37

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

Re: Calling all math lovers and good programmers

scimonster wrote:

Hardmath123 wrote:

Sure, you can join! So, let's get started. Can someone whip something up to do the following to an input:

Delete all spaces
Replace sqrt with ' √ '
Replace [ ] and { } with plain old ( )

That ought to be the firs step, in my opinion.

Here you go: http://scratch.mit.edu/projects/scimonster/1690245
smile

What now?
I can work on some basic functions

Offline

 

#36 2011-03-30 11:28:07

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Calling all math lovers and good programmers

TheSuccessor wrote:

I can help. My math knowledge is lot better than that of Scratch, if that helps. (I still know a reasonable bit of Scratch though.)


/* No comment */

Offline

 

#37 2011-03-30 12:22:56

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

Re: Calling all math lovers and good programmers

Necromaster wrote:

scimonster wrote:

Hardmath123 wrote:

Sure, you can join! So, let's get started. Can someone whip something up to do the following to an input:

Delete all spaces
Replace sqrt with ' √ '
Replace [ ] and { } with plain old ( )

That ought to be the firs step, in my opinion.

Here you go: http://scratch.mit.edu/projects/scimonster/1690245
smile

What now?
I can work on some basic functions.

So will I.

Offline

 

#38 2011-03-30 18:05:57

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

Re: Calling all math lovers and good programmers

scimonster wrote:

Necromaster wrote:

What now?
I can work on some basic functions.

So will I.

Have Succesor (if he's working on this, i forgot) build us a stack frame.
I'm terrible at the start.

P.S. Edit: He's good at it. He knows plenty about it.  smile

Last edited by bbbeb (2011-03-30 18:06:23)


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

Offline

 

#39 2011-03-30 20:19:14

hpotter134
Scratcher
Registered: 2010-02-21
Posts: 100+

Re: Calling all math lovers and good programmers

Cool idea! This sort of thing has been attempted before, but the attemptor failed (OK, I tried and failed  hmm  ). I'll be glad to help in any way I can!


http://i45.tinypic.com/fxgtvc.png

Offline

 

#40 2011-03-30 23:26:25

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

Re: Calling all math lovers and good programmers

Some graphics for the background of the calculator are here. Remember, there are more than just one! (see them in the experimental viewer).


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

 

#41 2011-03-31 01:27:05

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

Re: Calling all math lovers and good programmers

I know what we can do!!! When I'm done with the checking for syntax program, someone can write something that makes a list of things to do with the number, from start to finish. After that, someone can write something that lists the numbers involved. Lastly, using the list of numbers and list of stuff to do to the numbers, the program could calculate the answer. This would obviously take a long time, and there fore would be good in any turbo mode available.


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

 

#42 2011-03-31 05:24:50

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

Re: Calling all math lovers and good programmers

Are we even going to try to put OOO in this?

Offline

 

#43 2011-03-31 06:11:02

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

Re: Calling all math lovers and good programmers

1. What's 'OOO'?
2. TheSuccessor, my mistake. I thought I included you when I said You cna help to applejack. So, YEAH, you can help.
3. I like scimonster's engine. Thanks!
4. How 'bout we call this Xenon?

Last edited by Hardmath123 (2011-03-31 06:12:05)


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

Offline

 

#44 2011-03-31 06:18:40

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

Re: Calling all math lovers and good programmers

1) Order Of Operations
2) "cna"?  tongue
3) Thank you!
4) OK, I like the name.

Offline

 

#45 2011-03-31 06:21:29

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

Re: Calling all math lovers and good programmers

1) Obviously.
4) Ok, I'll get a banner made.


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

Offline

 

#46 2011-03-31 07:46:37

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

Re: Calling all math lovers and good programmers

We have two choices:

1: First, eliminate all brackets, then solve a bracketless expression.
2: Add brackets to it until it is fully bracketed, then simplify.

eg:

To solve 7+3(3+2)

1: solve 7+3*3 + 3*2
2: solve 7+ (3*(3+(2))

I vote for 1, because we'll get stuck if we get (1+2)(3+4) in 2.


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

Offline

 

#47 2011-03-31 07:58:34

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

Re: Calling all math lovers and good programmers

hpotter134 wrote:

Cool idea! This sort of thing has been attempted before, but the attemptor failed (OK, I tried and failed  hmm  ). I'll be glad to help in any way I can!

Sure!


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

Offline

 

#48 2011-03-31 08:05:37

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

Re: Calling all math lovers and good programmers

Hardmath123 wrote:

We have two choices:

1: First, eliminate all brackets, then solve a bracketless expression.
2: Add brackets to it until it is fully bracketed, then simplify.

eg:

To solve 7+3(3+2)

1: solve 7+3*3 + 3*2
2: solve 7+ (3*(3+(2))

I vote for 1, because we'll get stuck if we get (1+2)(3+4) in 2.

I like 1 better.

Offline

 

#49 2011-03-31 09:21:34

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

Re: Calling all math lovers and good programmers


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

Offline

 

#50 2011-03-31 09:33:55

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

Re: Calling all math lovers and good programmers

OK. What now?
Start solving it.  yikes

The reason it would be so much easier in BYOB is recursion. Here if we do a broadcast like "parentheses" to solve what's in it, if there is parentheses in the parentheses, it wouldn't work.  hmm

Offline

 

Board footer