473,395 Members | 1,437 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,395 software developers and data experts.

Point Of intersection between two plotted functions

Is there anyway one could find ot the point of intersection between
any two plotted functions and also display them using gnuplot.py??
Jun 27 '08 #1
2 5199
Hi

Let your 2 functions be f(x) and g(x). Then you have to solve the
equation f(x) = g(x).

For some functions it will be easier to determine intervals of the
real line where f(x)-g(x) 0 and where f(x)-g(x) < 0 and to find an
interval in which the 2 intersect, which would probably be good enough
for plotting.

How straightforward any of this is depends entirely on the nature of
your functions.

Regards

Mark

On Jun 13, 7:34 am, arslanbur...@gmail.com wrote:
Is there anyway one could find ot the point of intersection between
any two plotted functions and also display them using gnuplot.py??
Jun 27 '08 #2

<ar**********@gmail.comwrote in message
news:2f**********************************@26g2000h sk.googlegroups.com...
| Is there anyway one could find ot the point of intersection between
| any two plotted functions

Assume you have sequence xi, yi, zi, where yi and zi are function values
corresponding to xi. In general, you will never have exact intersection
with yi==zi. So in addition, look for successive triples xi,yi,zi and
x(i+1), y(i+1), z(i+1) such that yi<zi and y(i+1)>z(i+1) or the other way
around. In other words, zi-yi and z(i+1)-y(i+1) have opposite signs. You
might want to also consider abs(zi-yi) < some very small number as possibly
indicating touching without crossing (as with tangents).


Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Antoine Logean | last post by:
Hi, What is the easiest way to get the intersection of two strings in python (a kind a "and" operator) ? ex: string_1 =...
5
by: soni29 | last post by:
hi, i currently reading a book on C++, the author just covered the topic of pointer to functions, but never mentioned the use. if possible could someone please tell me when to use them, why not...
6
by: kimos | last post by:
hi all, how to calculate the intersection of 2 rectangle a rectangle is the following: Rectangle makeRectangle (Point lowerLeft, Point upperRight) { Rectangle r;
65
by: Skybuck Flying | last post by:
Hi, I needed a method to determine if a point was on a line segment in 2D. So I googled for some help and so far I have evaluated two methods. The first method was only a formula, the second...
2
by: sicapitan | last post by:
Hi There :) Is it possible to get the 4 corners where 2 dives intersect? I'm making a table-ish system and som drag and drop elements need to snap to the area intersecting between 2 divs. I...
2
by: mkppk | last post by:
I have kind of strange change I'd like to make to the sets.Set() intersection() method.. Normally, intersection would return items in both s1 and s2 like with something like this: ...
10
by: Armando Serrano Lombillo | last post by:
Why does Python give an error when I try to do this: Traceback (most recent call last): File "<pyshell#40>", line 1, in <module> len(object=) TypeError: len() takes no keyword arguments but...
3
by: jacek.dziedzic | last post by:
Hi! What is the canonical way of finding an intersection of two std::maps? i.e. I have std::map<whatever,size_tmap1; std::map<whatever,size_tmap2; .... and I need an std::vector...
1
by: arslanburney | last post by:
Hello. Could some1 tell me how i could "display" a specific point in gnuplot.py. Supposingly if i have a point of intersection (2,3). How can i show this on the graph? As in how can i write near...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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.