Flowchart (ISO 5807)
Source code
C++
double horner(double a[], int n, double x) {
double res = a[0];
for (int i = 1; i < n; i++) {
res = res * x + a[i];
}
return res;
}The editor opens with this code — change it and the chart redraws.
- Language
- C++
- Constructs
- polynomial evaluation
- Topic
- Algorithms
- Formats
- Word, Visio, draw.io, PDF, SVG