Обычная табуляция кусочно заданной функции. Ну ещё картинку можно раскрасить на всякий случай:
#include <iomanip>
#include <iostream>
using namespace std;
double z(double x, double t)
{ return (x > 0.5) ? t * pow(sin(x), 2) + cos(x) :
(x < 0.5) ? (pow(log(x), 3) + x * x) / sqrt(x + t) :
sqrt(x + t) + 1. / x; }
void sym(int n, string x)
{ for (int i = 0; i < n; i++) cout << x; }
int main()
{ double i, x, dx = 0.2, t = 2.2;
string biruze = "\033[36m",
magenta = "\033[35m", yellow = "\033[33m",
red = "\033[31m", space = " "; cout << yellow;
sym(25, "="); cout << endl << red << " x:" <<
fixed; sym(4, space); cout << "z(x,t):" << endl;
cout << yellow; sym(25, "="); cout << endl;
for (i = 0; i <= 9; i++) { x = 0.2 + i * dx;
cout << biruze << setprecision(1) << setw(3)
<< x << magenta << setprecision(16) <<
setw(22) << z(x, t) << endl; } cout << yellow;
sym(25, "="); cout << endl; getchar(); }
