Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

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).
 
Share this answer
 
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[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900