• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 169
  • Last Modified:

Graph Function

Can you please explain it in a different way?
q12.JPGq13.JPGscreenshot3.jpg
0
mustish1
Asked:
mustish1
  • 4
  • 2
1 Solution
 
phoffricCommented:
Your approach is done in a straightforward conventional way. Looks good.
0
 
mustish1Author Commented:
Can you please explain the part 1 that how the values of x and y are plugged in
0
 
phoffricCommented:
y = y(x) = 2^(-x) = 1/2^(x)
Using your sample values of x:

y(1) = 1/2^(1) = 1/2         ==> (1, 1/2)
y(0) = 1/2^(0) = 1/1 = 1   ==> (0,1)
y(-1) = 1/2^(-1) = 1/ (1/2) = 2 ==> (-1, 2)     // I see that you had (-1, 1/2) even though you had y=2
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
phoffricCommented:
For part 2, you can graph the two curves, i.e., the quadratic and the straight lines, and then get an approximation of g(x).graph_2_curves.pnggraph_2_curves_zoom1.pngFrom the graphs, you can get a rough feel where the intersections of the two graphs are. Then you guess and compute g(x_guess). Then you increment and decrement x_guess by, say, 0.1, and see which g(x) is closer to -8. Now you have a new x_guess. and you modify x_guess by 0.5 in both directions to chose a new x_guess. Keep doing this until the new x_guess is the same as the previous one for the desired number of decimal places.
0
 
phoffricCommented:
To do the numerical approach more efficiently, you can use the newton raphson numerical method approach.
https://en.wikipedia.org/wiki/Newton%27s_method

But you have to come up with two initial guesses that will converge to the two solutions.
0
 
mustish1Author Commented:
Thank You.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now