I'm working on java program that can compute the differentiation of any given mathematical expression.
When User types the expression say Sin(Cos(x^2))
I need to check whether it is mathematically valid or not.
Of course we can do it by manual code writing but that would be tedious work.
Can I do it using regex package of java??
How??
thanx..