Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
hi there .im now programming a mathematics program which solves the equation.now i want to add an ability to draw the functions with the power of 1 or 2.
anybody can guide me???
thanks a lot!!
Posted 23-Jan-13 1:42am
tnt1374253
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

It is not difficult:
  • compute a bidimensional array of points {x, f(x)} with {x} representative of the range of interest.
  • Scale the rectangle (xmin, ymin, xmax, ymax) to your output rectangle.
  • Draw the scaled point possibly connecting them (the are various options, for instance linearly or using splines).
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

You may be able to use this article here on CP to help you with how to code this: A simple C# library for graph plotting[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.140926.1 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100