• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 817
  • Last Modified:

function graph (TChart)

I will give 500 point to expert who will write simple code which will draw the graph (with TChart component) of the following function:

y = (sqrt(x) + sin(x)) / (2 - x)

(remember, that x can not be negative (sqrt(x)) or x = 2 (division by zero))
0
wezuvio
Asked:
wezuvio
1 Solution
 
mcantiCommented:
you should use 2 series on the TChart: one that goes for 0 < x < 2 and one for 2 < x < ....

If you set the colors and all properties of the series to be equal, than you have your graph displayed. Also set AutoMinimum and AutoMaximum to false, so the graph doesnt get to distorted for big values (when x->2)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now