kill(all);

fpprintprec:6;

      Problem from David Pascal
      Find all possible roots of x^3-x-1

van=facebook.com/LearningCalculus$

f(x):=x^3-x-1;

solutions:rectform(fullratsimp((solve(f(x),x))))$

solutions[1];
solutions[2];
solutions[3];

float(solutions[1]);
float(solutions[2]);
float(solutions[3]);