Answer the question
In order to leave comments, you need to log in
How to plot a function in windows forms c#?
I need to plot the Diocles cissoid function.
Since I do not really understand how to insert this function into windows forms c#, I used the cissoid equation in a rectangular coordinate system:
Here is my code:
public Form1() {
InitializeComponent();
int a = 4, m;
for (int i = 1; i<50; i++) {
m = (((2 * a) - i) / 2);
if (m == 0) {
m = 1;
}
chart1.Series[0].Points.AddXY((i), (i*i*i)/m);
}
}
Answer the question
In order to leave comments, you need to log in
Duc, and who will extract the root?
And so you build y=x*x*x/(2*ax). By the way, the expression of the denominator is also for some reason divisible by 2.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question