473,407 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Graph 2 Dimensional Function

I'm trying to write a program that will iterate a 2 dimensional function (I think I have that part fine). The problem I'm having is to give as input all the values in a set range. To be more specific:
I want the iteration to happen for every initial condition such that x = [-2.5, 2.5] and y = [-2.5, 2.5]. (So it iterates when (x, y) = (-2.5, -2.5), and again when (x, y) = (-2.5, -2.25), and again for (-2.25, -2.5), and so on for the entire range)

Any advice?
Jun 20 '07 #1
2 1363
prometheuzz
197 Expert 100+
I'm trying to write a program that will iterate a 2 dimensional function (I think I have that part fine). The problem I'm having is to give as input all the values in a set range. To be more specific:
I want the iteration to happen for every initial condition such that x = [-2.5, 2.5] and y = [-2.5, 2.5]. (So it iterates when (x, y) = (-2.5, -2.5), and again when (x, y) = (-2.5, -2.25), and again for (-2.25, -2.5), and so on for the entire range)

Any advice?
I have no idea what you're talking about.
Could you give a concrete example?
Jun 20 '07 #2
I have no idea what you're talking about.
Could you give a concrete example?
I'm trying to replicate a Henon Map for a chaotic system, just the basin, I did the attractor. The code for the attractor is:
/*code starts*/
for (int k = 1; k < 1000; k++)
{
xMap = A - x * x + B * y;
yMap = x;
x = xMap;
y = yMap;
}
/*code ends*/

For this x and y are both initially 0. The instructions for the basin (I'm following "Chaos: An Intro to Dynamical Systems" by Alligood, Sauer, and Yorke) say that I should take x = [-2.5, 2.5] and y = [-2.5, 2.5] as my initial conditions when I iterate.
Jun 20 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Lilith | last post by:
Is there a python module somewhere (been searching today, no luck) which has efficiently coded various graph-handling routines, such as finding the shortest path through a graph, or the set of all...
25
by: Magnus Lie Hetland | last post by:
Is there any interest in a (hypothetical) standard graph API (with 'graph' meaning a network, consisting of nodes and edges)? Yes, we have the standard ways of implementing graphs through (e.g.)...
0
by: Angela | last post by:
I am using VS.NET 2003 and Crystal 9. I have been told by Crystal, as well as many co-workers who know Crystal really well, that I cannot create the particulat graph I need using Crystal Reports....
1
by: wayne | last post by:
i want to plot a line graph. The values that I obtain are the RGB value of a TIFF image. i m plotting RGB values vs value(1,2,3..) so when generated the RGB values, there will b a column of values...
3
by: i | last post by:
Hi, I'm working with an array of nodes, numbering roughly in the thousands. Each node has at least one, but up to four, references to another node - North, South, East, or West. I'm trying to...
5
by: nelly0 | last post by:
developing a program that will manipulate noise levels (measured in decibels) that is collected by car manufacturers. These noise levels are produced at seven different speeds by a maximum of six...
5
by: rekhasc | last post by:
hi all............... in my proj i am using a mschart .... now what i want is i want to display the graph amount v/s months I did the graph which shows date v/s amount its working good... i used...
4
by: Man4ish | last post by:
namespace ve/////////////////ve.h { struct VertexProperties { std::size_t index; boost::default_color_type color; }; }...
1
by: Man4ish | last post by:
I am creating a graph using boost library, I am making the network using create_Network function() i am adding the vertices to this graph by creating the object g of class Graph. I am trying to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.