How to draw a intersection point on two cures?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: How to draw a intersection point on two cures?

Threaded View

  1. #1
    Join Date
    Sep 2004
    Posts
    96

    How to draw a intersection point on two cures?

    hi,I want to draw the point of intersection on two cures.For example,the point of inersection on Line y=x and parabola y=x*x (-2<=x<=2).But it is failure for the following program segment:
    Code:
       For x=-2 to 2 step 0.01
         Picture1.ForeColor=vbBlack
         If x=x*x then
           Picture1.Forecolor=vbRed
           Picture1.Pset(x,x)
         Else 
           Picture1.Pset(x,x*x)
         Endif
       Next x
    What's wrong with it? Hope to explain it.Thank you a lot.
    Last edited by Hack; 03-08-2010 at 10:39 AM. Reason: Added Code Tags
    xuliangchu

Similar Threads

  1. Replies: 4
    Last Post: 04-22-2009, 05:38 PM
  2. vb.net point of intersection
    By noobsaibot in forum .NET
    Replies: 5
    Last Post: 09-16-2007, 09:01 PM
  3. JAVA RMI : A Shared Whiteboard
    By eclipt in forum Java
    Replies: 1
    Last Post: 01-09-2007, 04:33 PM
  4. already defined error
    By rssmps in forum C++
    Replies: 6
    Last Post: 05-31-2006, 05:07 PM
  5. Replies: 1
    Last Post: 09-01-2002, 08:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center