Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I am trying to plot a solution to a Solve result, ie I have a function f(x,y) and I want to plot y=y(x) for when f(x,y) = 0.06366. Here is what I am trying to do

f[x_, y_] := 0.5*Erf[(y - 0.04*x^2)/(0.1*Sqrt[x])] + 0.5;
Plot[Evaluate@Table[Solve[f[x, y] == 0.06366, {x, y}, {y, Range[0, 1, 0.2]}],
{x, 0, 7}], PlotRange -> Full]
share|improve this question
    
Why not directly plot the expression in terms of InverseErf[] that you get from Solve[]? –  J. M. May 27 '13 at 7:17
    
I want to be able to do this for a general f(x,y) –  l3win May 27 '13 at 7:26
add comment

1 Answer

up vote 3 down vote accepted

Something like the following will do the job:

f[x_, y_] := 0.5*Erf[(y - 0.04*x^2)/(0.1*Sqrt[x])] + 0.5;
Plot[y /. Solve[f[x, y] == 0.06366, y], {x, 0, 7}]

I just copied the method from the "Solve" help page in Mathematica.

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.