Click here to Skip to main content
13,004,215 members (80,212 online)
Rate this:
Please Sign up or sign in to vote.
See more:
hi there .im now programming a mathematics program which solves the 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
Rate this: bad
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).
Rate this: bad
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[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170627.1 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2017
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