Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String Equitions

Status
Not open for further replies.

selimsl

Programmer
Aug 15, 2005
62
0
0
TR
Hi!
I have a string which consists of a numbers and a variable(z).
Like this,
Code:
“2*(z^(-1))*3*(z^(-1))”
The result must be as follows,
Code:
“6*(z^(-2))”
Is there any way to do this in vb.

Thanks in advice
 
A couple of days ago we had thread222-1456934 which should be of interest.
 
If you have a look, these are not same.
The result of thread222-1456934: String - Float Conversion
is number , but for this one the result must be consist of numbers as well as variable(z)
 
What you are now looking for is algebraic simplification. This is not something built in to VB, nor any of the standard ActiveX controls or libraries that you might have access to. Nor is is it quite as straightforward as it looks.

I'm afraid that you will either have to write your own or purchase a library with this functionality (or there may be a free one available, since the commercial products such as Mathematica and MatLab are quite expensive).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top