applejack wrote:
Of coure it is. Please update the banners/codes on the first page for my improved ones!
![]()
Hardmath123 wrote:
amcerbu wrote:
Code:
___ ___ ___ _____ /__/\ /__/\ / /\ / /::\ \ \:\ | |::\ / /::\ / /:/\:\ \ \:\ | |:|:\ / /:/\:\ / /:/~/::\ ___ \ \:\ __|__|:|\:\ / /:/~/:/ /__/:/ /:/\:| /__/\ \__\:\ /__/::::| \:\ /__/:/ /:/ \ \:\/:/~/:/ \ \:\ / /:/ \ \:\~~\__\/ \ \:\/:/ \ \::/ /:/ \ \:\ /:/ \ \:\ \ \::/ \ \:\/:/ \ \:\/:/ \ \:\ \ \:\ \ \::/ \ \::/ \ \:\ \ \:\ \__\/ \__\/ \__\/ \__\/Cool, but is it necessary?
I did...
Offline
It's an online site that converts text to ASCII art. Just search Google for ASCII art.
I would like people to see this post, so here it is again:
scimonster wrote:
@amcerbu: Is "1" the first thing? According to OOO, it goes "PEMDAS" - Parentheses, exponents, multiplication/division, addition/subtraction. I want to put our multi-letter ops with ^s.
Sorry for being unclear. The system I described ranks operations of higher precedence (things that happen first) with higher numbers.
amcerbu wrote:
Code:
Operator: ^ * / + - mod() % sqrt() log() sin() cos() tan() Precedence: 4 2 2 1 1 2 3 2 2 2 2 2
The operation with highest precedence is exponentiation ( ^ ). I would like to say again that the user must format multi-letter operations like this: sqrt(x), sin(x). That way, the value of the multi-letter operation is taken care of before moving on. Think about this:
//In this representation, position up or down indicates bracket hierarchy.
//The highest line is the innermost bracket set.
//In our project, the program will evaluate the diagram "top to bottom."
3
4 + 5 log( )
2 / sin( ) + sqrt( )
4 + ( )
Together, this makes:
4 + ( 2 / sin( 4 + 5 ) + sqrt( log( 3 ) ) )I listed multi-letter operations with a precedence of 2 because, in fact, they will execute before the rest of the "line" on which the appear. Consider 2 / sin( 4 + 5 ). sin( 4 + 5 ) will be calculated before performing the 2 / ___ part.
Hope that clears up what I said earlier.
Offline
amcerbu wrote:
It's an online site that converts text to ASCII art. Just search Google for ASCII art.
I would like people to see this post, so here it is again:scimonster wrote:
@amcerbu: Is "1" the first thing? According to OOO, it goes "PEMDAS" - Parentheses, exponents, multiplication/division, addition/subtraction. I want to put our multi-letter ops with ^s.
Sorry for being unclear. The system I described ranks operations of higher precedence (things that happen first) with higher numbers.
amcerbu wrote:
Code:
Operator: ^ * / + - mod() % sqrt() log() sin() cos() tan() Precedence: 4 2 2 1 1 2 3 2 2 2 2 2The operation with highest precedence is exponentiation ( ^ ). I would like to say again that the user must format multi-letter operations like this: sqrt(x), sin(x). That way, the value of the multi-letter operation is taken care of before moving on. Think about this:
Code:
//In this representation, position up or down indicates bracket hierarchy. //The highest line is the innermost bracket set. //In our project, the program will evaluate the diagram "top to bottom." 3 4 + 5 log( ) 2 / sin( ) + sqrt( ) 4 + ( ) Together, this makes: 4 + ( 2 / sin( 4 + 5 ) + sqrt( log( 3 ) ) )I listed multi-letter operations with a precedence of 2 because, in fact, they will execute before the rest of the "line" on which the appear. Consider 2 / sin( 4 + 5 ). sin( 4 + 5 ) will be calculated before performing the 2 / ___ part.
Hope that clears up what I said earlier.
I was thinking along the following code:
//scanning is defined as changing a variable by one until item(var)of[Problem list] = what you're scanning for
n = 1
forever{
repeat until (not <Problem list contains item [n] of [OOO]>)
scan for item n of OOO
do operation with item (var - 1) of problem list, and item (n + 1) of problem list
replace all three with result
n = n + 1
}Last edited by Hardmath123 (2011-05-23 01:14:50)
Offline
amcerbu wrote:
Sounds good! I think that should work!
Do you program in C++? because the { } is a dead giveaway.
JavaScript
Offline
Like a chain list of things?
I can work on it, but it never works for me due to the large if else cascading structure.
Maybe I'll help.
Offline
make the think seperatley, and then tak it onto the end when your done.
bbbeb wrote:
Like a chain list of things?
I can work on it, but it never works for me due to the large if else cascading structure.
Maybe I'll help.
Offline
applejack wrote:
What's [/offtopic] mean? And duh, we all use scratch.
![]()
amcerbu wrote:
C++ and TI BASIC. [/offtopic]
So who is gonna do the evaluation coding?
It means get back ontopic; discussing what we are supposed to be.
[/offtopic]
Offline
So, who wants to program the evaluation engine? It will probably only be one person - if you look at Hardmath123's code above, it seems pretty simple. The project is almost done...
Last edited by amcerbu (2011-05-24 16:37:45)
Offline
[offtopic] How do you pack as much as you do into your sig? I only get 400 characters... Ive just managed to sqeeze all that's in my sig in
[/offtopic]
scimonster wrote:
applejack wrote:
What's [/offtopic] mean? And duh, we all use scratch.
![]()
amcerbu wrote:
C++ and TI BASIC. [/offtopic]
So who is gonna do the evaluation coding?It means get back ontopic; discussing what we are supposed to be.
![]()
[/offtopic]
Last edited by applejack (2011-05-24 20:25:12)
Offline
amcerbu wrote:
So, who wants to program the evaluation engine? It will probably only be one person - if you look at Hardmath123's code above, it seems pretty simple. The project is almost done...
No, I don't think it's actually that simple. Don't forget all the functions we have.
applejack wrote:
[offtopic] How do you pack as much as you do into your sig? I only get 400 characters... Ive just managed to sqeeze all that's in my sig in
[/offtopic]
scimonster wrote:
applejack wrote:
What's [/offtopic] mean? And duh, we all use scratch.
![]()
It means get back ontopic; discussing what we are supposed to be.
![]()
[/offtopic]
Some of them are goo.gl links, which shorten the URL.
Offline
How's it going Scratcher7_13?
PS: I added you to the active list.
Offline
I'm making something that checks that brackets and parentheses are matched, but should I add it to an existing project?
Hardmath123 wrote:
PS: I added you to the active list.
![]()
Thanks!
Last edited by scratcher7_13 (2011-05-25 08:27:25)
Offline
scratcher7_13 wrote:
I'm making something that checks that brackets and parentheses are matched, but should I add it to an existing project?
Hardmath123 wrote:
PS: I added you to the active list.
![]()
Thanks!
Remix scimonster's projet.
Offline
Bump?
Offline
School starts June 1 for, me, I won't be as active then
.
Offline
amcerbu wrote:
@scratcher7_13: Could you tell us what you're planning to do? The idea was to post code in [code] boxes before programming. That way, we can fix out any kinks in the program before you upload it.
Yes. I'm still working on the code.
Offline
Sorry, I don't understand the code very well, so I'm working through it.
Offline