?
Solved

function graph (TChart)

Posted on 2004-09-18
1
Medium Priority
?
815 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
mcanti earned 1500 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month9 days, 2 hours left to enroll

764 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