Message Boards Message Boards

0
|
4714 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

Manipulate[]

Hi, I want to know how to extract the value of X and Y Manipulate [], Hi, I want to know how to extract the value of X and Y Manipulate [] and assign it to use again in a recursive function.

  f[a_, b_, x_] := a x^3 + x^b + 4
    g[a_, b_, x_, y_] := x y - a x ;
    Manipulate[
     FindRoot[{f[a, b, x] == 0, 
       g[a, b, x, y] == CantidadX}, {{x, 1}, {CantidadX, 1}}], {a, 4, 
      5}, {b, 1, 2}, {y, 1, 2}]

enter image description here

POSTED BY: Harvey Vargas

FindRoot, like many other functions in Mathematica, outputs its results as rules. Please see this article on how to use them:

http://support.wolfram.com/kb/12505

So if you wanted the x value from FindRoot, you'd use:

x/. FindRoot[{f[a, b, x] == 0, g[a, b, x, y] == CantidadX}, {{x, 1}, {CantidadX, 1}}]
POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract