5) It's preceded by a '/'
BTW, the '/' serves to raise the next factor in the string by -1 power. Negative signs are skipped past, because there's never any intention to divide just by a negative...
Type: Posts; User: ygfperson
5) It's preceded by a '/'
BTW, the '/' serves to raise the next factor in the string by -1 power. Negative signs are skipped past, because there's never any intention to divide just by a negative...
so... ignoring whitespace, it's a minus sign unless
1) It's preceded by a plus sign
2) it's preceded by a parenthesis
3) it's the first character in the string
4) it's preceded by a '*'
This...
But that could also be
4-n = 4(-n)
(a+b)(c+d) does work fine. In some situations the parentheses surrounding the expression don't show when they should, so I'll have to tweak that.
x(a+b) isn't allowed because x() is handled like a...
Thanks.
Yes, actually. Sorry for burying int main() in there.
1) Expression after being parsed (unsimplified)
2) Combined like terms and factors
3) Used distributive property to expand factors...
You're right... I didn't notice that. That's a bug.
Here is the executable:
//edit: another note: make sure there is a '*' between a variable and a parentheses. ie:
f(x)
will be...
after it is compiled, run it, and type in an expression:
9x^2+b
and it will parse it into objects and print it back out again. If there's a way to simplify it, it will do that automatically....
It's finally here... after a month... :D
It's got plenty of bugs to be worked out... but this is pretty far along from my last release.
This is a set of classes designed to manipulated...