fork download
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <math.h>
  4.  
  5. void plot();
  6.  
  7. int main() {
  8. plot();
  9. return 0;
  10. }
  11.  
  12. void plot() {
  13. system("gnuplot -p -e \" plot[0:5] 0 lw 3, 5*x**3-20*x**2+x-30 lw 5; \"");
  14. }
  15.  
  16.  
Success #stdin #stdout #stderr 0s 5280KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
sh: 1: gnuplot: not found