Plotting Iteractive function

General discussion about Mathematica features and functionality...
Forum Rules
By using the Wolfram Faculty Program Forum, you agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, or sexually oriented material. Wolfram Faculty Program Forum administrators have the right to remove, edit, move or close any topic at any time should we see fit.

Personal Information: Posts in this forum may be viewed by non-members; however, the forum prohibits non-members from viewing your profile. Although your email address is hidden from both non-members and members, your account is initially configured to allow members to contact you via email through the forum. If you wish to hide your profile, or prohibit others from contacting you directly, you may change these settings by updating your profile through the User Control Panel.

Attachments: Attachments are not currently enabled on this forum. To share a file with others on this site, simply upload your file to the online storage service of your choice and include a link to the file within your post. If your school does not offer an online file storage and sharing service, the following sites provide free basic online file storage and sharing: Mozy, FilesAnywhere, Adrive, and KeepandShare.

Plotting Iteractive function

Postby descardeci » Thu Apr 22, 2010 7:29 pm

Does anybody knows how to make a program in Mathematica for plotting y_n versus x_n. (x_n,y_n) is solution of f(x_n,y_n)=0.
Initially we know y_1=0 and x_1 such that f(x_1,y_1)=0
after that, for a given y_n, x_n=FindRoot[ f(x,y_n), with initial guess x=x_(n-1) ]
The caulculus is made iteratively from n=1 to 100 (for example), resulting in a curve (x_n,y_n) . f(x,y) could be for example Sin[x-y-2] and for y_1=0 we have x_1=2. And y_n=n-1

I am just starting in Mathematica and I would like to show this tu my pupils (Electrical Engineering undergraduate students) . THANKS, Descardeci
User avatar
descardeci
 
Posts: 1
Joined: Wed Apr 21, 2010 9:26 pm
Organization: Federal University of Tocantins - UFT , Brazil
Department: Electrical Engineering

Re: Plotting Iteractive function

Postby Michael_Morrison » Mon Apr 26, 2010 9:04 pm

Descardeci,

You can create a list of f(x,y) values using the RecurrenceTable function, and then use ListPlot3D to visualize the results. There's an example of this approach in the "Neat Examples" section of the documentation for RecurrenceTable, which can be found here:
http://reference.wolfram.com/mathematic ... #568697427

I hope that helps!

-Michael
User avatar
Michael_Morrison
 
Posts: 42
Joined: Fri Sep 11, 2009 9:50 pm
Organization: Wolfram Research, Inc.
Department: Academic Initiatives


Return to General Mathematica Discussion

Who is online

Users browsing this forum: No registered users and 1 guest