Solved

function graph (TChart)

Posted on 2004-09-18
1
808 Views
Last Modified: 2013-11-17
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
Comment
Question by:wezuvio
1 Comment
 
LVL 2

Accepted Solution

by:
mcanti earned 500 total points
ID: 12124507
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now