Ploting general equation of conics

  • Thread starter Thread starter ahmadriaz
  • Start date Start date
  • Tags Tags
    Conics General
Click For Summary

Discussion Overview

The discussion revolves around plotting the general equation of conics represented by Ax² + By² + Cxy + Dx + Ey + F = 0. Participants explore methods for graphing these equations, including the use of parametric equations and polar forms, while addressing challenges related to rotated axes and programming environments.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant has developed a program that analyzes conic types and seeks guidance on how to graph these equations.
  • Another suggests using parametric equations for better graphing results and offers to share code for Turbo C++.
  • A participant mentions their program can find key features of conics but needs help specifically with graphing.
  • There is a suggestion to utilize the graphics library in Borland Turbo C++ for plotting, including functions like initgraph() and putpixel().
  • One participant expresses concern that their reduced conic equations may be in rotated form, complicating the plotting process.
  • Another participant confirms that rotated axes are common and provides a transformation for coordinates to account for rotation.
  • Discussions include the potential effectiveness of polar forms for plotting conics, but no consensus is reached on the best method.

Areas of Agreement / Disagreement

Participants generally agree on the challenges of plotting conics, particularly regarding rotated axes and the need for transformations. However, multiple competing views on the best approach to graphing remain, with no consensus on a definitive method.

Contextual Notes

Participants mention limitations related to programming environments (e.g., Turbo C++ vs. Flash MX) and the complexity of reducing general equations to standard forms for plotting. There is also uncertainty regarding the effectiveness of polar forms in this context.

Who May Find This Useful

This discussion may be useful for individuals interested in programming graphical representations of mathematical concepts, particularly those working with conic sections and seeking methods for graphing complex equations.

ahmadriaz
Messages
4
Reaction score
0
i have made a program that takes input of Ax^2+By^2+Cxy+Dx+Ey+F=0

it determines the type pf curve and finds all the related elements...now i want to ad the GRAPHS as well...but i can't find a way...i just completed my 12th standard so i don't have enough knowledge...even i can't find related pages on GOOGLE... can u please please guide me how to plote Ax^2+By^2+Cxy+Dx+Ey+F=0

please do help...coz the program means a lot to me...

i think polar form will solve my prob...please guide me
REGARDS
AHMAD
 
Technology news on Phys.org
You are right, if you use parametric equations, you can get a pretty good graph. I assume you're using Turbo C++? If you want, I've done the code already and I'd be happy to show it to you. If you want to analyze the coefficients and decide which conic the equation represents, we could do that too.
 
sir...my current program can analyse the type of conic...i just need help in how to draw graph of eqs of the form
10x^2+4y^2+3xy+4x+6y+8=0

my current program finds the vertices, directrices, axxis, centre, etc...
 
If you could show us the code, perhaps we could look at it and tell you. If you've got everything else sorted out and are using Borland Turbo C++ 3.0 or thereabouts, the compiler has a graphics library, graphics.h. Look into the examples for the function initgraph(). You basically need initgraph(), putpixel(), and closegraph() for actual plotting.

You will be restricted to 16 colors, and you would get the best resolution using parametric equations. To further streamline the code, you would need to use symmetry to plot the points. To do that, I would suggest that after you figure out what conic it is that you want to plot, you try to reduce it to its general equation and plot that instead of the general second degree equation. You would need to solve some of this on paper before you could program it in, but that shouldn't be too difficult.
 
well i am using flash mx...n i have done the DIFICULT PAPER WORK..i have reduced the conics to their general forms...but i think those general forms are the ROTATED equations...if u plot them/...i will only get a standard curse with axis x=0 or y=0...but the actual curve is rotated at some angle right?i am having problem with that...and how to show you the code of FLASH..i will have to send u abc.FLA file for that,,,,but isn't there any method for ploting GENERAL EQ of CONICS>>>?without using those graphics libraries?i mean how to find out the cordinates?i can plot them in flash..but i dun know how to find coordinated...can POLAR FORM be suitable for this>??
 
Yeah, youre right. In most cases you will get a rotated axis. You can counter for that of course by assuming that the original axis differs from the rotated axis by an angle [tex]\theta[/tex] and the rotated coordinates are:

[tex]x*=xcos\theta - ysin\theta[/tex]
[tex]y*=xsin\theta + ycos\theta[/tex] where x and y are the original coordinates and x*, y* are the coordinates you see in your equation.

I don't know much about flash, all the code I've written is in C++, I was thinking along the lines of reducing the general equation to the standard form and from there to the parametric form to get better resolution. Like I said before, you can get very good resolution with polar form.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K