Liste des Groupes | Revenir à s math |
On 9/18/2024 5:44 AM, WM wrote:
No good idea, since in this case your program will deliver 9182024 + 1 points, right?Define an interval comprising [exactly] 9182024 points, starting at zero.p0 = (0, 0)
p1 = (1, 0)
pdif = p1 - p0;
pnormal_base = 1.f / 9182024;
// add one more point to make it all the way to p1...
for (i = 0; i < 9182024 + 1; ++i)Nope. The (real) interval [0, 1] consists of more points than just 9182024 (or 9182024 +1).
{
pnormal = pnormal_base * i;
p2 = p0 + pdif * pnormal;
plot(p2);
}
?
Les messages affichés proviennent d'usenet.