2
$\begingroup$

Given the equation below, how do I find the value of b so that the function is equal to 21. I tried solve but I keep getting an error message.

(15 Sqrt[π] (Erf[11 Sqrt[b]] + Erf[17 Sqrt[b]]))/(14 Sqrt[b]) == 21
$\endgroup$
2
  • $\begingroup$ Welcome to Mathematica.SE! I suggest that: 1) You take the introductory Tour now! 2) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! 3) As you receive help, try to give it too, by answering questions in your area of expertise. $\endgroup$
    – bbgodfrey
    Commented Mar 8, 2015 at 19:07
  • $\begingroup$ This title is uninformative. Please re-write the title to be of use to someone trying to use these solutions in the future. $\endgroup$ Commented Mar 8, 2015 at 19:36

3 Answers 3

2
$\begingroup$

You can use Solve, if you specify constraint on b

  eq = (15 Sqrt[\[Pi]] (Erf[11 Sqrt[b]] + Erf[17 Sqrt[b]]))/(14 Sqrt[b]) == 21;
  Solve[eq && 0 < b < 100, b]

Mathematica graphics

 N[%]

Mathematica graphics

$\endgroup$
1
$\begingroup$

First there is a typo in your equation, it should be Sqrt[Pi] and not Sqrt[[Pi]]. This equation can not solved via NSolve, but you get a result (approx 0.0325) via FindRoot:

FindRoot[(15 Sqrt[Pi] (Erf[11 Sqrt[b]] + Erf[17 Sqrt[b]]))/(14 Sqrt[
  b]) - 21, {b, 1.}]
$\endgroup$
2
  • $\begingroup$ I do not believe that Sqrt[\[Pi]] is incorrect. $\endgroup$
    – bbgodfrey
    Commented Mar 8, 2015 at 19:11
  • 1
    $\begingroup$ Uuups, seems as I need new glasses ;-) $\endgroup$
    – mgamer
    Commented Mar 8, 2015 at 20:06
0
$\begingroup$

You can use FindInstance to find one solution:

N@FindInstance[(15 Sqrt[Pi] (Erf[11 Sqrt[b]] + Erf[17 Sqrt[b]]))/(14 Sqrt[b]) == 21, {b}]
{{b -> 0.0325472}}
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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