Rearrange a formula

A

Ali Baba

How do I write a code to chart functions in this form

After arrangement
2*x+xy = 4 >> y = (4-x)/x

3+xy +x = 0 >> y = -(3+x)/x

So I just want the user to enter the function, then excel will plot it.

I know how to plot the function after it has been rearranged, but what I
don't know is how to rearrange the function to plot it

Can anybody hep

Thanx
 
A

Ali Baba

My question is how to rearrange the formula to plot it. I know how to plot it.

The program by Tushar Mehta can only plot an equation of this form:
y(x) = .................

But what I want is something which allows the user just to enter any
equation of this form, for example, to get it plotted
3*xy + x =2

You may say why don't you just ask the user to enter the rearranged
equation. Well, I want excel to do the job not the user. That's why I want
your help to write the code.

thanks Jon
 
J

Jon Peltier

Do you understand what you're asking? Can you envision the magnitude of
what you're asking? A routine like this which would parse a formula,
entered in any possible way, would be a huge undertaking, and I may be
understating it.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top