How can I have a program raise the parantesis??
Like this:
(7x + 2) - (3x - 3)
so it says
7x + 2 - 3x + 3
???
Printable View
How can I have a program raise the parantesis??
Like this:
(7x + 2) - (3x - 3)
so it says
7x + 2 - 3x + 3
???
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
Can you say what tokenise means please?
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
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 ..
My favourite language german. What does it say?
At least it seems like german to me...
does it matter? .. it works in german, too..
I pressed OK and it didn't raise the parentesis the expression had.
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 ..