How to get Manipulate results into a variable? tia sal2

Discussion in 'Mathematica' started by Sal2, Mar 2, 2008.

  1. Sal2

    Sal2 Guest

    How to get Manipulate results into a variable? tia sal2


    Greetings All

    How can I link variables to the results from the manipulate command.

    Example: I would like the output of this command linked to another variable say x.

    Manipulate[Factor[x^n - 1], {n, 10, 100, 1}]

    tia sal2
     
    Sal2, Mar 2, 2008
    #1
    1. Advertisements

  2. Hi,

    Manipulate[y = Factor[x^n - 1], {n, 10, 100, 1}]

    and don't say that the other variable is "x" and *not* y

    Regards
    Jens
     
    Jens-Peer Kuska, Mar 3, 2008
    #2
    1. Advertisements

  3. Try:

    In[1]:=Manipulate[remember = Factor[x^n - 1], {n, 10, 100, 1}]

    Now the last displayed result of Manipulate ist stored in the
    variable "remember"

    In[2]:=remember

    You can see the changes if you enter:

    In[3]:=Dynamic[remember]

    but then you can't do e.g. x=remember because of recursion.

    Gruss Peter
     
    Peter Breitfeld, Mar 3, 2008
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.