|
-
Apr 13th, 2001, 05:41 AM
#1
Thread Starter
Frenzied Member
How can I have a program raise the parantesis??
Like this:
(7x + 2) - (3x - 3)
so it says
7x + 2 - 3x + 3
???
-
Apr 13th, 2001, 12:53 PM
#2
Fanatic Member
Suggestions
First, tokenise the expression. Then, taking note of the operator between the brackets (+ or -), edit the tokens in the following bracket. For example, changing unary minuses minus another number to plus etc.
Just output the data to a string. Nice and easy 
Laterz
Digital-X-Treme
Contact me on MSN Messenger: [email protected]
[VBCODE]Debug.Print Round(((1097) - ((55 ^ 5 + 311 ^ 3 - 11 ^ 3) _
/ (68 ^ 5))) ^ (1 / 7), 13)[/VBCODE]
-
Apr 13th, 2001, 01:27 PM
#3
Banned
Can you say what tokenise means please?
-
Apr 13th, 2001, 01:38 PM
#4
Fanatic Member
Tokenise
To tokenise an expression means to split it into 'tokens', which are the individual elements of the expression. For example, to tokenise the following expression:
2*3--2+2*-3--2
We would get 12 seperate tokens.
2
*
3
-
-2
+
2
*
-
3
-
-2
Laterz
Digital-X-Treme
Contact me on MSN Messenger: [email protected]
[VBCODE]Debug.Print Round(((1097) - ((55 ^ 5 + 311 ^ 3 - 11 ^ 3) _
/ (68 ^ 5))) ^ (1 / 7), 13)[/VBCODE]
-
Apr 14th, 2001, 11:49 AM
#5
i have that in javascript here .. i had been working on it until i saw a TI-89 (and others) that can do all that stuff and much more ..
-
Apr 14th, 2001, 12:07 PM
#6
Banned
My favourite language german. What does it say?
At least it seems like german to me...
-
Apr 14th, 2001, 12:12 PM
#7
it actually is
does it matter? .. it works in german, too..
-
Apr 14th, 2001, 12:16 PM
#8
Banned
I pressed OK and it didn't raise the parentesis the expression had.
-
Apr 14th, 2001, 12:22 PM
#9
yeah
the "result" as far it does it should appear last at the "blue screen" .. i haven't finished that yet, and i never will (like most of my appz and pages and so on), so don't expect it to do, what it promises (in german, of cos'). try to enter smth like 10x + 20x(20 - 3)+5(4-5-56x)+1=0 , if u want .. have a nice day ..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|