Is it possible to use printf to get math 2d output? For example, I'm writing a loop computing Riemann Sums.
f := x-> x^2; a := 0; b := 1; for i from 1 to 5 do printf("f(x[%d])=%a",i,f(a+i*(b-a)/5)*(b-a)/5); end do;
I would like the output to look nicer. Thanks in advance!