0

In Solve output for such as:

Solve[r^2 - 6 r - 3 s^2 + 8 s Sqrt[r] == 0 && 0 < s < 1, r, Reals]

Where in the documentation do I learn how to read the output?

3 Answers3

0

without testing the code generally Solve gives you an answer in the form of list with i entries like {r-> x1, r-> x2} depending in your case how many i Real answers there are...based on your condition...If you write ?Solve you’ll get a snippet of the documentation for that command...and the >>will take you directly to the documentation itself.

DrMrstheMonarch
  • 2,971
  • 1
  • 10
  • 16
0
Region[ImplicitRegion[
  r^2 - 6 r - 3 s^2 + 8 s Sqrt[r] == 0 && 0 < s < 1, {r, s}], 
 FrameLabel -> {"r", "s"}, Frame -> True, AspectRatio -> 1]

enter image description here

Note I am using <=

RegionPlot[
 r^2 - 6 r - 3 s^2 + 8 s Sqrt[r] <= 0 && 0 < s < 1, {s, 0.001, 
  0.999}, {r, 0, 7}, FrameLabel -> Automatic]

enter image description here

 val=Table[Join @@ {{s}, 
        Flatten@Values@
          NSolve[r^2 - 6 r - 3 s^2 + 8 s Sqrt[r] == 0 && 0 < s < 1, r, 
           Reals]}, {s, 1/100, 1, 1/100}] // Most

enter image description here

OkkesDulgerci
  • 10,716
  • 1
  • 19
  • 38
0

To get an insight of the solution variety you can use

ContourPlot[r^2 - 6 r - 3 s^2 + 8 s Sqrt[r] == 0, {s, 0, 1}, {r, -1, 6}, 
MaxRecursion -> 4, FrameLabel -> {s, r}]

enter image description here

The plot includes the solution s=r=0

Ulrich Neumann
  • 53,729
  • 2
  • 23
  • 55