applejack wrote:
We're still working on Xenon, and if we did a graphing calculator afterword, you'd just put in the the part that y (or f(x)) was equal to. it would just substitute x for a different number each time.
bbbeb wrote:
1. I'm back here!
2. I would love to eat lots of watermelon until I explode or turn into an epic kirby.
3. A graphing calculator? IS THIS SRS BIZNESS? if so, its going to be a problem...
(We'd need like y=mx+b, ax+bx=c, x^2+ax+b= 0; )
That would be an issue for my etreme hatred of fluffy white dogs.
I don't know completely how a graphing calc works, so: no comment.
EDIT: 350th reply!
Last edited by scimonster (2011-05-04 00:57:27)
Offline
B-u-m-p
Offline
So, I haven't had the opportunity to get started on the program itself, but I think that we should all pitch in and write a text version first before making anything. That will go faster, and will be more organized, since more people will have the chance to spot bugs.
Offline
Text version now? First variable, then list, then text, then back to list? Seems like alot.
The thing is, there's no point in splitting who does what if it's all planned out.
Offline
No, what I'm saying is we write out the code for the program in a
box inside the forum, then we code it in Scratch. That way, everyone can see how the program will work, and provide criticism within the forum topic, rather than downloading and re-uploading the project itself.
EDIT: I'm sorry, my previous comment was kinda vague. I hope this clears that up.
Last edited by amcerbu (2011-05-04 22:52:39)
Offline
Nom?
amcerbu wrote:
No, what I'm saying is we write out the code for the program in a
Code:
box inside the forum, then we code it in Scratch. That way, everyone can see how the program will work, and provide criticism within the forum topic, rather than downloading and re-uploading the project itself.
EDIT: I'm sorry, my previous comment was kinda vague. I hope this clears that up.
Offline
amcerbu, I think I may have confused you—you job is to insert * for implied multiplication, and check for mismatched brackets (using sci's code). Reporting the innermost bracket set is hpotter134's job. Sorry if I confused you.
I support a grapher.
I support doing things in code boxes.
I think 0s1s will not be possible. The script will be too long. How about something like this:
When greenflag clicked
{scimonster's coding}
broadcast amcerbu
When I receive amcerbu
{amcerbu's coding}
...and so on.
Last edited by Hardmath123 (2011-05-05 01:15:35)
Offline
But we could just build the scripts seperetley and number them from 1-10 or howevermany there are. At the end we could just tak them onto eachotherっ。
Hardmath123 wrote:
amcerbu, I think I may have confused you—you job is to insert * for implied multiplication, and check for mismatched brackets (using sci's code). Reporting the innermost bracket set is hpotter134's job. Sorry if I confused you.
I support a grapher.
I support doing things in code boxes.
I think 0s1s will not be possible. The script will be too long. How about something like this:Code:
When greenflag clicked {scimonster's coding} broadcast amcerbu When I receive amcerbu {amcerbu's coding} ...and so on.
Offline
0s1s!
Offline
@Hardmath123- The method I described earlier for checking for mismatched brackets (using two lists) will be expandable for hpotter134's job, that is, the method for checking for mismatched brackets does not need to be separate from innermost brackets. I don't think it is practical to separate those two jobs.
Here is the old description of the bracket method:
amcerbu wrote:
This is how the parentheses locations will work: one temporary variable will increase from 0 until it reaches "(", and another variable will start at that location, and increase until it reaches ")" (and has passed an equal number of "(" and ")" already- we don't want it picking up the first one it stumbles across). That means that innermost brackets will appear at the end of the parentheses location lists, and in order from left to right. So...
Code:
a+(b(c+d)) 1234567890 //item number in the input list. will report as ( list- 3 5 ) list- 0 9Note- I used 0 instead of 10, didn't want to run out of digits.
Notice that the innermost brackets - at locations 5 and 9 - are the last members of their respective lists.
Last edited by amcerbu (2011-05-05 12:58:45)
Offline
i would love to help what can i help with
Offline
amcerbu wrote:
@Hardmath123- The method I described earlier for checking for mismatched brackets (using two lists) will be expandable for hpotter134's job, that is, the method for checking for mismatched brackets does not need to be separate from innermost brackets. I don't think it is practical to separate those two jobs.
Here is the old description of the bracket method:amcerbu wrote:
This is how the parentheses locations will work: one temporary variable will increase from 0 until it reaches "(", and another variable will start at that location, and increase until it reaches ")" (and has passed an equal number of "(" and ")" already- we don't want it picking up the first one it stumbles across). That means that innermost brackets will appear at the end of the parentheses location lists, and in order from left to right. So...
Code:
a+(b(c+d)) 1234567890 //item number in the input list. will report as ( list- 3 5 ) list- 0 9Note- I used 0 instead of 10, didn't want to run out of digits.
Notice that the innermost brackets - at locations 5 and 9 - are the last members of their respective lists.
Ummm, I think we'd be a lot more organized the simple way.
Offline
applejack wrote:
I saw this strange LED-thing whatever at the camping store (summit hut) it was called Xenon
anyway, G'night folks!
![]()
Xenon is a gas which can produce light (kinda) wikipeadia http://en.wikipedia.org/wiki/Xenon
Offline
Please read
Hardmath123 wrote:
amcerbu wrote:
This is how the parentheses locations will work: one temporary variable will increase from 0 until it reaches "(", and another variable will start at that location, and increase until it reaches ")" and has passed an equal number of "(" and ")" already- we don't want it picking up the first one it stumbles across. That means that innermost brackets will appear at the end of the parentheses location lists, and in the order they appear from left to right. So...
Code:
a + ( b ( c + d ) ) 1 2 3 4 5 6 7 8 9 0 //item number in the input list will report as ( list- 3 5 ) list- 0 9Note- I used 0 instead of 10, didn't want to run out of digits.
Notice that the innermost brackets - at locations 5 and 9 - are the last members of their respective lists.Ummm, I think we'd be a lot more organized the simple way.
Hardmath123, what I described earlier is the easiest way to detect the innermost set of brackets, and at the same time can be used to test for mismatched brackets. In other words, testing for mismatched brackets should be part of the same code as finding the parentheses hierarchy.
Does anyone else agree? It doesn't feel like anyone is reading the forum topic anymore. I don't want to accidentally do hpotter134's job, but I think it should be pointed out that a system like this will make our code much simpler, faster, easier to read, and easier to build upon.
Just to reiterate...
The output list from this method will contain innermost brackets at the end, and when two pairs of brackets are at the same "level", the locations will be adjacent to each other. So...
5-(1+2)(1-2)
The lists will store first the locations for the brackets in (1+2), and then immediately afterward for those in (1-2), so the evaluation program will start within brackets located at the end of the parentheses lists, and work backwards. This will provide correct evaluation.
I am encouraging this system because it functions similarly to how we work problems out with pencil and paper. Any support? I'm sorry to be arguing with Hardmath123, but I feel that the code should be as compact, neat, and effective as possible. In other words, if there is a way to handle two parts of the project at once, it should be used.
Last edited by amcerbu (2011-05-07 21:13:31)
Offline
amcerbu wrote:
Please read
Hardmath123 wrote:
amcerbu wrote:
...
...
...Ummm, I think we'd be a lot more organized the simple way.
Hardmath123, what I described earlier is the easiest way to detect the innermost set of brackets, and at the same time can be used to test for mismatched brackets. In other words, testing for mismatched brackets should be part of the same code as finding the parentheses hierarchy.
Does anyone else agree? It doesn't feel like anyone is reading the forum topic anymore. I don't want to accidentally do hpotter134's job, but I think it should be pointed out that a system like this will make our code much simpler, faster, easier to read, and easier to build upon.
...
I am encouraging this system because it functions similarly to how we work problems out with pencil and paper. Any support? I'm sorry to be arguing with Hardmath123, but I feel that the code should be as compact, neat, and effective as possible. In other words, if there is a way to handle two parts of the project at once, it should be used.
Anything that reduces the number of steps will make the program more efficient, and as far as I understand what your saying, amcerbu, this method will cut three steps into one. If this deprives me of my job, so be it.
But before we go overriding each other, let's solve this democratically: I'd like to hear Hardmath123's argument more thoroughly. Could you please explain why your method is better than amcerbu's, or what are the faults of amcerbu's, because your short statement of
Hardmath123 wrote:
Ummm, I think we'd be a lot more organized the simple way.
is just too vague for me to judge.
Offline
I would like to help develop Xenon.
Offline
Bumping hpotter134's post as well as my own.
Offline
amcerbu: I'm not on Scratch quite often these days. I will, however, check all new posts whenever I do check up. You don't have to bump up a post posted just 3 posts above.
hpotter134: I agree with you. However, we should try to keep the code compact as well as neat. Our code will involve repeating the "find innermost set of brackets" subscript many times. Moreover, it will perform this code after the setup. Your job was to be the beginning of the calculation. Since it seems reasonable that there should be a logical distinction between the setup and calculation, our code should attempt to be not only compact but clean.
Scimonster's method to find mismatched brackets seems perfect for the job—amcerbu practically needs to just remix his project with that script added in. Your job is completely different. You need to create a new list called (say) "SubProblem". You now need to extract the innermost set of nested brackets, if any, and then put it into the list "SubProblem". Once this is over, I will assign new jobs. New scripts will then evaluate that, and replace that bit of list with the answer. The whole process will then be repeated, starting from finding the innermost bracket set. Once enough of these "simplifications" are done, and we have a single value, we report that.
As you can see, amcerbu's job will really not be compatible with this (unless you want to end up checking for mismatched brackets every time, which would be silly and more inefficient) and it will probably be simpler, faster, cleaner, and on the whole a lot easier if we just go ahead and separate the jobs.
That's my opinion, but as hpotter134 says, we should debate this fairly. Anyway, thanks for reading the whole thing, and please take a minute to think about it.
—Hardmath
Last edited by Hardmath123 (2011-05-09 07:01:20)
Offline